PHPUnit_Framework_Assert::assertNotIsReadable PHP Method

assertNotIsReadable() public static method

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

Usage Example

Example #1
0
 public function isNotReadable()
 {
     $this->isExist();
     Assert::assertNotIsReadable($this->actual, $this->description);
     return $this;
 }
PHPUnit_Framework_Assert