1
0
mirror of https://github.com/danog/file.git synced 2024-11-29 20:09:10 +01:00

Add PHP 5 yield parenthesis...

This commit is contained in:
Bob Weinand 2016-10-03 12:28:19 +02:00
parent cf7a966900
commit af2ce9b256

View File

@ -268,7 +268,7 @@ abstract class DriverTest extends \PHPUnit_Framework_TestCase {
$mask = umask(062);
yield file\put($toUnlink, "unlink me");
umask($mask);
$stat = yield file\stat($toUnlink);
$stat = (yield file\stat($toUnlink));
$this->assertTrue(($stat["mode"] & 0777) == 0604);
yield file\unlink($toUnlink);
$this->assertNull(yield file\stat($toUnlink));
@ -290,7 +290,7 @@ abstract class DriverTest extends \PHPUnit_Framework_TestCase {
$dir = "{$fixtureDir}/newdir/with/recursive/creation";
yield file\mkdir($dir, 0764, true); // the umask is 022 by default
$stat = yield file\stat($dir);
$stat = (yield file\stat($dir));
$this->assertTrue(($stat["mode"] & 0777) == 0744);
});
}