projects
/
m6w6
/
atick
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
363315d
)
fix test
author
Michael Wallner
<mike@php.net>
Sun, 24 Nov 2013 10:21:21 +0000
(11:21 +0100)
committer
Michael Wallner
<mike@php.net>
Sun, 24 Nov 2013 10:21:21 +0000
(11:21 +0100)
tests/lib/atick/TickerTest.php
patch
|
blob
|
history
diff --git
a/tests/lib/atick/TickerTest.php
b/tests/lib/atick/TickerTest.php
index 5d079857dee3b436918a79625f498c9a832d6894..517e4ca6c503a1e109bd69d86218300512e5ac13 100644
(file)
--- 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());
}