File tree Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Expand file tree Collapse file tree 3 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,10 @@ matrix:
12
12
- php : 7.1
13
13
- php : 7.2
14
14
- php : 7.3
15
- - php : 7.3.0
16
- - php : 7.3.1
17
- - php : 7.3.2
15
+ - php : 7.4
18
16
- php : nightly
17
+ env :
18
+ - IGNORE_PLATFORM_REQ=true
19
19
- php : hhvm-3.9
20
20
sudo : required
21
21
dist : trusty
@@ -36,7 +36,12 @@ before_install:
36
36
- xdebug-disable
37
37
38
38
before_script :
39
- - travis_retry composer update --no-interaction --prefer-source --prefer-stable
39
+ - if [[ "$IGNORE_PLATFORM_REQ" == "true" ]]; then
40
+ composer self-update --preview;
41
+ travis_retry composer update --no-interaction --prefer-stable --ignore-platform-req=php;
42
+ else
43
+ travis_retry composer update --no-interaction --prefer-stable;
44
+ fi
40
45
41
46
script :
42
47
- if [[ "$LINT" == "true" ]]; then
Original file line number Diff line number Diff line change 23
23
"sort-packages" : true
24
24
},
25
25
"require" : {
26
- "php" : " ^7" ,
26
+ "php" : " ^7.0 || ^8.0 " ,
27
27
"ext-intl" : " *" ,
28
28
"ext-simplexml" : " *" ,
29
29
"ext-mbstring" : " *" ,
Original file line number Diff line number Diff line change 16
16
17
17
use Assert \Assertion ;
18
18
use Assert \AssertionFailedException ;
19
+ use Assert \Tests \Fixtures \CustomAssertion ;
19
20
use Assert \Tests \Fixtures \OneCountable ;
20
21
use PDO ;
21
22
use PHPUnit \Framework \TestCase ;
@@ -1832,7 +1833,8 @@ public function testValidCallable()
1832
1833
{
1833
1834
$ this ->assertTrue (Assertion::isCallable ('\is_callable ' ));
1834
1835
$ this ->assertTrue (Assertion::isCallable (__NAMESPACE__ .'\\Fixtures \\someCallable ' ));
1835
- $ this ->assertTrue (Assertion::isCallable ([OneCountable::class, 'count ' ]));
1836
+ $ this ->assertTrue (Assertion::isCallable ([new OneCountable (), 'count ' ]));
1837
+ $ this ->assertTrue (Assertion::isCallable ([CustomAssertion::class, 'clearCalls ' ]));
1836
1838
$ this ->assertTrue (
1837
1839
Assertion::isCallable (
1838
1840
function () {
@@ -2227,7 +2229,7 @@ public function testInvalidPropertiesExist($properties)
2227
2229
2228
2230
public function testIsResource ()
2229
2231
{
2230
- self ::assertTrue (Assertion::isResource (\curl_init ( )));
2232
+ self ::assertTrue (Assertion::isResource (\fopen ( ' php://memory ' , ' w ' )));
2231
2233
}
2232
2234
2233
2235
/**
You can’t perform that action at this time.
0 commit comments