PHPUnit_Framework_Assert::assertIsReadable PHP Method

assertIsReadable() public static method

Asserts that a file/dir is readable.
public static assertIsReadable ( string $filename, string $message = '' )
$filename string
$message string
    public static function assertIsReadable($filename, $message = '')
    {
        if (!is_string($filename)) {
            throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
        }
        $constraint = new PHPUnit_Framework_Constraint_IsReadable();
        static::assertThat($filename, $constraint, $message);
    }

Usage Example

Esempio n. 1
0
 public function isReadable()
 {
     $this->isExist();
     Assert::assertIsReadable($this->actual, $this->description);
     return $this;
 }
PHPUnit_Framework_Assert