Skip to content

Commit

Permalink
Replace stream_socket_recfrom with fread in StreamSocketClientUdpTest…
Browse files Browse the repository at this point in the history
….php (rg. #3)
  • Loading branch information
Benjamin Zikarsky committed Sep 12, 2013
1 parent 363fc82 commit 5e7ce97
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Gelf/Test/Transport/StreamSocketClientUdpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ public function setUp()

public function tearDown()
{
stream_set_blocking($this->serverSocket, 0);
unset($this->socketClient);
fclose($this->serverSocket);
}
Expand All @@ -68,7 +67,7 @@ public function testWrite()
$this->assertEquals(strlen($testData), $numBytes);

// check that message is sent to server
$readData = stream_socket_recvfrom($this->serverSocket, $numBytes);
$readData = fread($this->serverSocket, $numBytes);

$this->assertEquals($testData, $readData);
}
Expand Down

0 comments on commit 5e7ce97

Please sign in to comment.