public function testHasChildDetached()
{
$resource = new DirectoryResource($this->fixturesDir . '/dir1');
$this->assertTrue($resource->hasChild('file1'));
$this->assertTrue($resource->hasChild('file2'));
$this->assertTrue($resource->hasChild('.'));
$this->assertTrue($resource->hasChild('..'));
$this->assertFalse($resource->hasChild('foobar'));
}