File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+
3+ <phpunit backupGlobals =" false"
4+ backupStaticAttributes =" false"
5+ colors =" true"
6+ convertErrorsToExceptions =" true"
7+ convertNoticesToExceptions =" true"
8+ convertWarningsToExceptions =" true"
9+ processIsolation =" false"
10+ stopOnFailure =" false"
11+ syntaxCheck =" false"
12+ bootstrap =" tests/bootstrap.php"
13+ >
14+ <testsuites >
15+ <testsuite name =" React Test Suite" >
16+ <directory >./tests/</directory >
17+ </testsuite >
18+ </testsuites >
19+
20+ <filter >
21+ <whitelist >
22+ <directory >./src/</directory >
23+ </whitelist >
24+ </filter >
25+ </phpunit >
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace React \Tests \Dns ;
4+
5+ class CallableStub
6+ {
7+ public function __invoke ()
8+ {
9+ }
10+ }
Original file line number Diff line number Diff line change @@ -295,6 +295,6 @@ protected function expectCallableNever()
295295
296296 protected function createCallableMock ()
297297 {
298- return $ this ->getMock ('React\Tests\Socket\Stub \CallableStub ' );
298+ return $ this ->getMock ('React\Tests\Dns \CallableStub ' );
299299 }
300300}
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ protected function expectPromiseOnce($return = null)
157157
158158 protected function createCallableMock ()
159159 {
160- return $ this ->getMock ('React\Tests\Socket\Stub \CallableStub ' );
160+ return $ this ->getMock ('React\Tests\Dns \CallableStub ' );
161161 }
162162
163163 protected function createExecutorMock ()
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ protected function expectCallableNever()
149149
150150 protected function createCallableMock ()
151151 {
152- return $ this ->getMock ('React\Tests\Socket\Stub \CallableStub ' );
152+ return $ this ->getMock ('React\Tests\Dns \CallableStub ' );
153153 }
154154
155155 private function createExecutorMock ()
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ $ loader = @include __DIR__ . '/../vendor/autoload.php ' ;
4+ if (!$ loader ) {
5+ $ loader = require __DIR__ . '/../../../vendor/autoload.php ' ;
6+ }
7+ $ loader ->addPsr4 ('React \\Tests \\Dns \\' , __DIR__ );
You can’t perform that action at this time.
0 commit comments