mirror of
https://github.com/danog/file.git
synced 2024-11-26 20:04:51 +01:00
Don't yield first write in testWrite
This commit is contained in:
parent
c98ea5ec42
commit
a8048dcc60
@ -24,7 +24,7 @@ abstract class HandleTest extends TestCase {
|
|||||||
$handle = yield File\open($path, "c+");
|
$handle = yield File\open($path, "c+");
|
||||||
$this->assertSame(0, $handle->tell());
|
$this->assertSame(0, $handle->tell());
|
||||||
|
|
||||||
yield $handle->write("foo");
|
$handle->write("foo");
|
||||||
yield $handle->write("bar");
|
yield $handle->write("bar");
|
||||||
yield $handle->seek(0);
|
yield $handle->seek(0);
|
||||||
$contents = yield $handle->read();
|
$contents = yield $handle->read();
|
||||||
|
Loading…
Reference in New Issue
Block a user