File tree Expand file tree Collapse file tree 6 files changed +28
-54
lines changed Expand file tree Collapse file tree 6 files changed +28
-54
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ language: php
3
3
php :
4
4
- " 7.2"
5
5
- " 7.3"
6
- - nightly
6
+ - 7.4snapshot
7
7
8
8
cache :
9
9
directories :
18
18
19
19
matrix :
20
20
allow_failures :
21
- - php : nightly
21
+ - php : 7.4snapshot
22
22
- env : LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-lowest" MINIMUM_STABILITY="dev"
23
23
- env : LARAVEL_VERSION="dev-master" ORCHESTRA_VERSION="dev-master" COMPOSER_FLAGS="--prefer-stable" MINIMUM_STABILITY="dev"
24
24
fast_finish : true
25
25
26
26
before_install :
27
+ - composer validate --strict
27
28
- travis_retry composer self-update
28
29
- 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
29
30
- if [[ -n ${ORCHESTRA_VERSION} ]]; then composer require orchestra/testbench=${ORCHESTRA_VERSION} --dev --no-update; else echo "orchestra/testbench version requirement left unchanged"; fi
Original file line number Diff line number Diff line change @@ -6,6 +6,12 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
6
6
7
7
## Unreleased
8
8
9
+ ## 2.0.2 (2019-03-08)
10
+
11
+ ### Changed
12
+
13
+ - Replaced custom array subset with package
14
+
9
15
## 2.0.1 (2019-02-27)
10
16
11
17
### Fixed
Original file line number Diff line number Diff line change 24
24
}
25
25
],
26
26
"require" : {
27
+ "php" : " ^7.2" ,
28
+ "dms/phpunit-arraysubset-asserts" : " ^0.1.0" ,
27
29
"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"
30
31
},
31
32
"require-dev" : {
32
33
"kint-php/kint" : " ^3.1" ,
33
34
"mockery/mockery" : " ^1.2" ,
34
- "orchestra/testbench" : " ^ 3.8" ,
35
+ "orchestra/testbench" : " ~ 3.8.0 " ,
35
36
"phpunit/phpunit" : " ^8.0"
36
37
},
37
38
"autoload" : {
56
57
},
57
58
"scripts" : {
58
59
"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
+ ]
61
68
}
62
69
}
Original file line number Diff line number Diff line change 13
13
stopOnFailure =" false"
14
14
failOnRisky =" true"
15
15
failOnWarning =" true"
16
- stopOnError =" false" >
16
+ stopOnError =" false"
17
+ cacheResult =" false"
18
+ >
17
19
<testsuites >
18
20
<testsuite name =" Feature Tests" >
19
21
<directory suffix =" Test.php" >./tests/Feature</directory >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
namespace SebastiaanLuca \BooleanDates \Tests \Feature ;
6
6
7
7
use Carbon \Carbon ;
8
- use SebastiaanLuca \ BooleanDates \ Tests \ Assert ;
8
+ use DMS \ PHPUnitExtensions \ ArraySubset \ ArraySubsetAsserts ;
9
9
use SebastiaanLuca \BooleanDates \Tests \resources \TestModel ;
10
10
use SebastiaanLuca \BooleanDates \Tests \TestCase ;
11
11
12
12
class BooleanArrayTest extends TestCase
13
13
{
14
+ use ArraySubsetAsserts;
15
+
14
16
/**
15
17
* @test
16
18
*/
@@ -59,7 +61,7 @@ public function it returns all attributes() : void
59
61
'agreed_to_something_at ' => null ,
60
62
];
61
63
62
- Assert ::assertArraySubset (
64
+ ArraySubsetAsserts ::assertArraySubset (
63
65
$ expected ,
64
66
$ model ->toArray ()
65
67
);
You can’t perform that action at this time.
0 commit comments