GetOptionKit\ValueType\DirType::test PHP Méthode

test() public méthode

public test ( $value )
    public function test($value)
    {
        return is_dir($value);
    }

Usage Example

Exemple #1
0
 public function testDirType()
 {
     $type = new DirType();
     $this->assertTrue($type->test('tests'));
     $this->assertFalse($type->test('composer.json'));
     $this->assertFalse($type->test('foo/bar'));
     $this->assertInstanceOf('SplFileInfo', $type->parse('tests'));
 }