File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Expand file tree Collapse file tree 4 files changed +10
-17
lines changed 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"
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
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