From 03a02ce58b064fa217ecf0236ba3e20422ce0efc Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Sun, 24 Nov 2013 11:21:21 +0100 Subject: [PATCH] fix test --- tests/lib/atick/TickerTest.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/lib/atick/TickerTest.php b/tests/lib/atick/TickerTest.php index 5d07985..517e4ca 100644 --- a/tests/lib/atick/TickerTest.php +++ b/tests/lib/atick/TickerTest.php @@ -51,7 +51,7 @@ class TickerTest extends \PHPUnit_Framework_TestCase { stream_set_blocking($file, false); $this->ticker->read($file, function ($file) use (&$r) { - return $r; + fread($file, fstat($file)["size"]); }); $this->assertCount(1, $this->ticker); $this->ticker->write($file, function ($file) use (&$w) { @@ -60,9 +60,6 @@ class TickerTest extends \PHPUnit_Framework_TestCase { $this->assertCount(2, $this->ticker); $this->assertSame(2, $this->ticker->wait()); - $r = true; - $this->assertSame(1, $this->ticker->wait()); - $w = true; $this->assertSame(0, $this->ticker->wait()); } -- 2.30.2