Skip to content

Commit e3ff503

Browse files
committed
Test sending after client has been ended
1 parent 541a1d9 commit e3ff503

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/SocketTest.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,19 @@ public function testClientEndAgainWillNotBlock(Socket $client)
6060
{
6161
$client->end();
6262
$this->loop->run();
63+
64+
return $client;
65+
}
66+
67+
/**
68+
*
69+
* @param Socket $client
70+
* @depends testClientEndAgainWillNotBlock
71+
*/
72+
public function testClientSendAfterEndIsNoop(Socket $client)
73+
{
74+
$client->send('does not matter');
75+
$this->loop->run();
6376
}
6477

6578
public function testCreatePair()

0 commit comments

Comments
 (0)