1
0
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:
Niklas Keller 2017-06-20 07:58:30 +02:00
parent c98ea5ec42
commit a8048dcc60

View File

@ -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();