File tree Expand file tree Collapse file tree 6 files changed +32
-31
lines changed Expand file tree Collapse file tree 6 files changed +32
-31
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
2
3
- php :
4
- # - 5.3 # requires old distro, see below
5
- - 5.4
6
- - 5.5
7
- - 5.6
8
- - 7
9
- - 7.1
10
- - 7.2
11
- - hhvm # ignore errors, see below
12
-
13
- # lock distro so future defaults will not break the build
3
+ # lock distro so new future defaults will not break the build
14
4
dist : trusty
15
5
16
6
matrix :
17
7
include :
18
8
- php : 5.3
19
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
20
19
allow_failures :
21
- - php : hhvm
20
+ - php : hhvm-3.18
22
21
23
22
sudo : false
24
23
Original file line number Diff line number Diff line change 13
13
"autoload" : {
14
14
"psr-4" : { "Clue\\ React\\ Utf8\\ " : " src/" }
15
15
},
16
+ "autoload-dev" : {
17
+ "psr-4" : { "Clue\\ Tests\\ React\\ Utf8\\ " : " tests/" }
18
+ },
16
19
"require" : {
17
20
"php" : " >=5.3" ,
18
21
"react/stream" : " ^1.0 || ^0.7 || ^0.6 || ^0.5 || ^0.4 || ^0.3"
19
22
},
20
23
"require-dev" : {
21
- "phpunit/phpunit" : " ^5.0 || ^4.8" ,
24
+ "phpunit/phpunit" : " ^9.0 ||^ 5.0 || ^4.8" ,
22
25
"react/stream" : " ^1.0 || ^0.7"
23
26
}
24
27
}
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
- >
3
+ <phpunit bootstrap =" vendor/autoload.php" colors =" true" >
6
4
<testsuites >
7
- <testsuite >
5
+ <testsuite name = " Utf8 Test Suite " >
8
6
<directory >./tests/</directory >
9
7
</testsuite >
10
8
</testsuites >
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
+ namespace Clue \Tests \React \Utf8 ;
4
+
3
5
use Clue \React \Utf8 \Sequencer ;
4
6
use React \Stream \ThroughStream ;
5
7
@@ -8,7 +10,10 @@ class SequencerTest extends TestCase
8
10
private $ input ;
9
11
private $ sequencer ;
10
12
11
- public function setUp ()
13
+ /**
14
+ * @before
15
+ */
16
+ public function setUpSequencer ()
12
17
{
13
18
$ this ->input = new ThroughStream ();
14
19
$ this ->sequencer = new Sequencer ($ this ->input );
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- require_once __DIR__ . ' /../vendor/autoload.php ' ;
3
+ namespace Clue \ Tests \ React \ Utf8 ;
4
4
5
- error_reporting (-1 );
6
-
7
- class TestCase extends PHPUnit_Framework_TestCase
5
+ class TestCase extends \PHPUnit \Framework \TestCase
8
6
{
9
7
protected function expectCallableNever ()
10
8
{
@@ -53,14 +51,6 @@ protected function expectCallableOnceParameter($type)
53
51
*/
54
52
protected function createCallableMock ()
55
53
{
56
- return $ this ->getMockBuilder ('CallableStub ' )->getMock ();
54
+ return $ this ->getMockBuilder ('stdClass ' )-> setMethods ( array ( ' __invoke ' ) )->getMock ();
57
55
}
58
56
}
59
-
60
- class CallableStub
61
- {
62
- public function __invoke ()
63
- {
64
- }
65
- }
66
-
You can’t perform that action at this time.
0 commit comments