Permalink
Browse files

Fixed Phpdoc

  • Loading branch information...
pborreli committed Jul 28, 2012
1 parent e0ea931 commit 556127711cfa8e93b334e677aafdc10b3fbf799a
Showing with 13 additions and 13 deletions.
  1. +3 −3 Filesystem.php
  2. +10 −10 Tests/FilesystemTest.php
View
@@ -27,9 +27,9 @@ class Filesystem
*
* By default, if the target already exists, it is not overridden.
*
- * @param string $originFile The original filename
- * @param string $targetFile The target filename
- * @param array $override Whether to override an existing file or not
+ * @param string $originFile The original filename
+ * @param string $targetFile The target filename
+ * @param boolean $override Whether to override an existing file or not
*
* @throws IOException When copy fails
*/
View
@@ -388,8 +388,8 @@ public function testChmodChangesFileMode()
$this->filesystem->chmod($file, 0400);
$this->filesystem->chmod($dir, 0753);
- $this->assertEquals(753, $this->getFilePermisions($dir));
- $this->assertEquals(400, $this->getFilePermisions($file));
+ $this->assertEquals(753, $this->getFilePermissions($dir));
+ $this->assertEquals(400, $this->getFilePermissions($file));
}
public function testChmodWrongMod()
@@ -414,8 +414,8 @@ public function testChmodRecursive()
$this->filesystem->chmod($file, 0400, 0000, true);
$this->filesystem->chmod($dir, 0753, 0000, true);
- $this->assertEquals(753, $this->getFilePermisions($dir));
- $this->assertEquals(753, $this->getFilePermisions($file));
+ $this->assertEquals(753, $this->getFilePermissions($dir));
+ $this->assertEquals(753, $this->getFilePermissions($file));
}
public function testChmodAppliesUmask()
@@ -426,7 +426,7 @@ public function testChmodAppliesUmask()
touch($file);
$this->filesystem->chmod($file, 0770, 0022);
- $this->assertEquals(750, $this->getFilePermisions($file));
+ $this->assertEquals(750, $this->getFilePermissions($file));
}
public function testChmodChangesModeOfArrayOfFiles()
@@ -442,8 +442,8 @@ public function testChmodChangesModeOfArrayOfFiles()
$this->filesystem->chmod($files, 0753);
- $this->assertEquals(753, $this->getFilePermisions($file));
- $this->assertEquals(753, $this->getFilePermisions($directory));
+ $this->assertEquals(753, $this->getFilePermissions($file));
+ $this->assertEquals(753, $this->getFilePermissions($directory));
}
public function testChmodChangesModeOfTraversableFileObject()
@@ -459,8 +459,8 @@ public function testChmodChangesModeOfTraversableFileObject()
$this->filesystem->chmod($files, 0753);
- $this->assertEquals(753, $this->getFilePermisions($file));
- $this->assertEquals(753, $this->getFilePermisions($directory));
+ $this->assertEquals(753, $this->getFilePermissions($file));
+ $this->assertEquals(753, $this->getFilePermissions($directory));
}
public function testChown()
@@ -832,7 +832,7 @@ public function providePathsForIsAbsolutePath()
*
* @return integer
*/
- private function getFilePermisions($filePath)
+ private function getFilePermissions($filePath)
{
return (int) substr(sprintf('%o', fileperms($filePath)), -3);
}

0 comments on commit 5561277

Please sign in to comment.