Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Commit 40dd54f

Browse files
committed
Use test class
1 parent 0b2b205 commit 40dd54f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

tests/fixtures/EchoStream.php renamed to tests/EchoStream.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
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+
}

tests/fixtures/server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
use Psy\Configuration;
44
use BeyondCode\LaravelTinkerServer\Server;
5+
use BeyondCode\LaravelTinkerServer\Tests\EchoStream;
56
use Symfony\Component\Console\Output\BufferedOutput;
67

78
$componentRoot = $_SERVER['COMPONENT_ROOT'] ?? __DIR__.'/../..';
89

910
$file = $componentRoot.'/vendor/autoload.php';
1011

1112
require $file;
12-
require $_SERVER['COMPONENT_ROOT'].'/tests/fixtures/EchoStream.php';
1313

1414
$loop = \React\EventLoop\Factory::create();
1515

@@ -19,7 +19,7 @@
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

0 commit comments

Comments
 (0)