Skip to content

Commit 9c1b31a

Browse files
committed
wip
1 parent fa122f3 commit 9c1b31a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/RoadRunnerServerProcessInspectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function test_roadrunner_server_process_can_be_reloaded()
6363
null
6464
)->andReturn($process = Mockery::mock('stdClass'));
6565

66-
$process->shouldReceive('run')->once()->andReturn(0);
66+
$process->shouldReceive('mustRun')->once()->andReturn(0);
6767

6868
$inspector->reloadServer('base-path');
6969
}

tests/SwooleClientTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function test_cant_serve_static_files_through_symlink_using_directory_tra
145145
}
146146

147147
/** @doesNotPerformAssertions @test */
148-
public function test_respond_method_send_response_to_swoole()
148+
public function test_respond_method_sends_response_to_swoole()
149149
{
150150
$client = new SwooleClient;
151151

@@ -155,7 +155,8 @@ public function test_respond_method_send_response_to_swoole()
155155
$swooleResponse->shouldReceive('header')->once()->with('Cache-Control', 'no-cache, private');
156156
$swooleResponse->shouldReceive('header')->once()->with('Content-Type', 'text/html');
157157
$swooleResponse->shouldReceive('header')->once()->with('Date', Mockery::type('string'));
158-
$swooleResponse->shouldReceive('end')->once()->with('Hello World');
158+
$swooleResponse->shouldReceive('write')->with('Hello World');
159+
$swooleResponse->shouldReceive('end')->once();
159160

160161
$client->respond(new RequestContext([
161162
'swooleResponse' => $swooleResponse,

0 commit comments

Comments
 (0)