From: Michael Wallner Date: Sun, 24 Nov 2013 10:21:21 +0000 (+0100) Subject: fix test X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=03a02ce58b064fa217ecf0236ba3e20422ce0efc;p=m6w6%2Fatick fix test --- 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()); }