File tree Expand file tree Collapse file tree 6 files changed +26
-20
lines changed Expand file tree Collapse file tree 6 files changed +26
-20
lines changed Original file line number Diff line number Diff line change
1
+ /.gitattributes export-ignore
2
+ /.gitignore export-ignore
3
+ /.travis.yml export-ignore
4
+ /examples / export-ignore
5
+ /phpunit.xml.dist export-ignore
6
+ /tests / export-ignore
Original file line number Diff line number Diff line change 1
1
language : php
2
- php :
3
- # - 5.3 # requires old distro, see below
4
- - 5.4
5
- - 5.5
6
- - 5.6
7
- - 7.0
8
- - 7.1
9
- - 7.2
10
- - hhvm # ignore errors, see below
11
2
12
3
# lock distro so future defaults will not break the build
13
4
dist : trusty
@@ -16,8 +7,17 @@ matrix:
16
7
include :
17
8
- php : 5.3
18
9
dist : precise
10
+ - php : 5.4
11
+ - php : 5.5
12
+ - php : 5.6
13
+ - php : 7.0
14
+ - php : 7.1
15
+ - php : 7.2
16
+ - php : 7.3
17
+ - php : 7.4
18
+ - php : hhvm-3.18
19
19
allow_failures :
20
- - php : hhvm
20
+ - php : hhvm-3.18
21
21
22
22
sudo : false
23
23
Original file line number Diff line number Diff line change 13
13
"autoload" : {
14
14
"psr-4" : { "Clue\\ React\\ Ssdp\\ " : " src/" }
15
15
},
16
+ "autoload-dev" : {
17
+ "psr-4" : { "Clue\\ Tests\\ React\\ Ssdp\\ " : " tests/" }
18
+ },
16
19
"require" : {
17
20
"php" : " >=5.3" ,
18
21
"clue/multicast-react" : " ^1.0 || ^0.2" ,
19
22
"react/event-loop" : " ^1.0 || ^0.5 || ^0.4 || ^0.3" ,
20
23
"react/promise" : " ^2.0 || ^1.0"
21
24
},
22
25
"require-dev" : {
23
- "phpunit/phpunit" : " ^6.0 || ^5.7 || ^4.8.35"
26
+ "phpunit/phpunit" : " ^7.0 ||^ 6.0 || ^5.7 || ^4.8.35"
24
27
}
25
28
}
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
3
- <phpunit bootstrap =" tests/bootstrap.php"
4
- colors =" true"
5
- convertErrorsToExceptions =" true"
6
- convertNoticesToExceptions =" true"
7
- convertWarningsToExceptions =" true"
8
- >
3
+ <phpunit bootstrap =" vendor/autoload.php" colors =" true" >
9
4
<testsuites >
10
5
<testsuite name =" SSDP Test Suite" >
11
6
<directory >./tests/</directory >
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ namespace Clue \Tests \React \Ssdp ;
4
+
3
5
use Clue \React \Ssdp \Client ;
4
6
use React \EventLoop \Factory ;
5
7
@@ -37,7 +39,7 @@ interface_exists('React\EventLoop\TimerInterface') ? 'React\EventLoop\TimerInter
37
39
38
40
$ this ->assertInstanceOf ('React\Promise\PromiseInterface ' , $ promise );
39
41
40
- if (!($ promise instanceof React \Promise \CancellablePromiseInterface)) {
42
+ if (!($ promise instanceof \ React \Promise \CancellablePromiseInterface)) {
41
43
$ this ->markTestSkipped ();
42
44
}
43
45
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- require __DIR__ . ' /../vendor/autoload.php ' ;
3
+ namespace Clue \ Tests \ React \ Ssdp ;
4
4
5
- class TestCase extends PHPUnit \Framework \TestCase
5
+ class TestCase extends \ PHPUnit \Framework \TestCase
6
6
{
7
7
protected function expectCallableOnce ()
8
8
{
You can’t perform that action at this time.
0 commit comments