This repository was archived by the owner on Jan 9, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- class EchoStream implements \React \Stream \WritableStreamInterface
3+ namespace BeyondCode \LaravelTinkerServer \Tests ;
4+
5+ use React \Stream \WritableStreamInterface ;
6+
7+ class EchoStream implements WritableStreamInterface
48{
59 public function on ($ event , callable $ listener )
610 {
@@ -51,4 +55,4 @@ public function close()
5155 {
5256 // TODO: Implement close() method.
5357 }
54- }
58+ }
Original file line number Diff line number Diff line change 22
33use Psy \Configuration ;
44use BeyondCode \LaravelTinkerServer \Server ;
5+ use BeyondCode \LaravelTinkerServer \Tests \EchoStream ;
56use Symfony \Component \Console \Output \BufferedOutput ;
67
78$ componentRoot = $ _SERVER ['COMPONENT_ROOT ' ] ?? __DIR__ .'/../.. ' ;
89
910$ file = $ componentRoot .'/vendor/autoload.php ' ;
1011
1112require $ file ;
12- require $ _SERVER ['COMPONENT_ROOT ' ].'/tests/fixtures/EchoStream.php ' ;
1313
1414$ loop = \React \EventLoop \Factory::create ();
1515
1919 'updateCheck ' => 'never ' ,
2020]);
2121
22- $ stdio = new \Clue \React \Stdio \Stdio ($ loop , null , new \ EchoStream ());
22+ $ stdio = new \Clue \React \Stdio \Stdio ($ loop , null , new EchoStream ());
2323
2424$ shell = new \Psy \Shell ($ config );
2525
You can’t perform that action at this time.
0 commit comments