Try to fix build.

This commit is contained in:
mark_story 2012-03-10 21:33:40 -05:00
parent 69ab443ed6
commit 2d343070fe

View file

@ -264,7 +264,7 @@ class FolderTest extends CakeTestCase {
public function testChmod() {
$this->skipIf(DIRECTORY_SEPARATOR === '\\', 'Folder permissions tests not supported on Windows.');
$path = CAKE . 'Console' . DS . 'Templates' . DS . 'skel';
$path = TMP;
$Folder = new Folder($path);
$subdir = 'test_folder_new';
@ -283,16 +283,16 @@ class FolderTest extends CakeTestCase {
$this->assertTrue($File->create());
$this->assertTrue($Folder->chmod($new, 0755, true));
$this->assertTrue($Folder->chmod($new, 0777, true, array('skip_me.php', 'test2')));
$this->assertTrue($Folder->chmod($new, 0644, true, array('skip_me.php', 'test2')));
$perms = substr(sprintf('%o', fileperms($new . DS . 'test1')), -4);
$this->assertEquals($perms, '0777');
$this->assertEquals($perms, '0644');
$perms = substr(sprintf('%o', fileperms($new . DS . 'test2')), -4);
$this->assertEquals($perms, '0755');
$perms = substr(sprintf('%o', fileperms($new . DS . 'test1.php')), -4);
$this->assertEquals($perms, '0777');
$this->assertEquals($perms, '0644');
$perms = substr(sprintf('%o', fileperms($new . DS . 'skip_me.php')), -4);
$this->assertEquals($perms, '0755');