Skip to content

Commit 2f7ca7d

Browse files
Merge branch 'release/2.0.2'
2 parents 7cc4dc9 + ba3b206 commit 2f7ca7d

File tree

6 files changed

+28
-54
lines changed

6 files changed

+28
-54
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: php
33
php:
44
- "7.2"
55
- "7.3"
6-
- nightly
6+
- 7.4snapshot
77

88
cache:
99
directories:
@@ -18,12 +18,13 @@ env:
1818

1919
matrix:
2020
allow_failures:
21-
- php: nightly
21+
- php: 7.4snapshot
2222
- env: LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-lowest" MINIMUM_STABILITY="dev"
2323
- env: LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-stable" MINIMUM_STABILITY="dev"
2424
fast_finish: true
2525

2626
before_install:
27+
- composer validate --strict
2728
- travis_retry composer self-update
2829
- if [[ -n ${MINIMUM_STABILITY} ]]; then composer config minimum-stability ${MINIMUM_STABILITY}; echo "Minimum stability set to ${MINIMUM_STABILITY}"; else echo "Minimum stability left unchanged"; fi
2930
- if [[ -n ${ORCHESTRA_VERSION} ]]; then composer require orchestra/testbench=${ORCHESTRA_VERSION} --dev --no-update; else echo "orchestra/testbench version requirement left unchanged"; fi

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
66

77
## Unreleased
88

9+
## 2.0.2 (2019-03-08)
10+
11+
### Changed
12+
13+
- Replaced custom array subset with package
14+
915
## 2.0.1 (2019-02-27)
1016

1117
### Fixed

composer.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,15 @@
2424
}
2525
],
2626
"require": {
27+
"php": "^7.2",
28+
"dms/phpunit-arraysubset-asserts": "^0.1.0",
2729
"laravel/framework": "~5.8.0",
28-
"nesbot/carbon": "^1.22.1|^2.0",
29-
"php": "^7.2"
30+
"nesbot/carbon": "^1.22.1|^2.0"
3031
},
3132
"require-dev": {
3233
"kint-php/kint": "^3.1",
3334
"mockery/mockery": "^1.2",
34-
"orchestra/testbench": "^3.8",
35+
"orchestra/testbench": "~3.8.0",
3536
"phpunit/phpunit": "^8.0"
3637
},
3738
"autoload": {
@@ -56,7 +57,13 @@
5657
},
5758
"scripts": {
5859
"test": "vendor/bin/phpunit",
59-
"test-lowest": "composer update --prefer-lowest --prefer-dist --no-interaction && vendor/bin/phpunit",
60-
"test-stable": "composer update --prefer-stable --prefer-dist --no-interaction &&vendor/bin/phpunit"
60+
"test-lowest": [
61+
"composer update --prefer-lowest --prefer-dist --no-interaction --ansi",
62+
"@test"
63+
],
64+
"test-stable": [
65+
"composer update --prefer-stable --prefer-dist --no-interaction --ansi",
66+
"@test"
67+
]
6168
}
6269
}

phpunit.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
stopOnFailure="false"
1414
failOnRisky="true"
1515
failOnWarning="true"
16-
stopOnError="false">
16+
stopOnError="false"
17+
cacheResult="false"
18+
>
1719
<testsuites>
1820
<testsuite name="Feature Tests">
1921
<directory suffix="Test.php">./tests/Feature</directory>

tests/Assert.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

tests/Feature/BooleanArrayTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@
55
namespace SebastiaanLuca\BooleanDates\Tests\Feature;
66

77
use Carbon\Carbon;
8-
use SebastiaanLuca\BooleanDates\Tests\Assert;
8+
use DMS\PHPUnitExtensions\ArraySubset\ArraySubsetAsserts;
99
use SebastiaanLuca\BooleanDates\Tests\resources\TestModel;
1010
use SebastiaanLuca\BooleanDates\Tests\TestCase;
1111

1212
class BooleanArrayTest extends TestCase
1313
{
14+
use ArraySubsetAsserts;
15+
1416
/**
1517
* @test
1618
*/
@@ -59,7 +61,7 @@ public function it returns all attributes() : void
5961
'agreed_to_something_at' => null,
6062
];
6163

62-
Assert::assertArraySubset(
64+
ArraySubsetAsserts::assertArraySubset(
6365
$expected,
6466
$model->toArray()
6567
);

0 commit comments

Comments
 (0)