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:
parent
cf7a966900
commit
af2ce9b256
@ -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);
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user