org\bovigo\vfs\vfsStreamDirectory::hasChild PHP 메소드

hasChild() 공개 메소드

checks whether the container contains a child with the given name
public hasChild ( string $name ) : boolean
$name string
리턴 boolean
    public function hasChild($name)
    {
        return $this->getChild($name) !== null;
    }

Usage Example

 /**
  * @depends testInstanceOf
  */
 public function testWriteIsWritingYamlIntoFile()
 {
     $yamlWriterProvider = new YamlWriterProvider($this->mockWriter);
     $this->mockWriter->expects($this->once())->method('dump')->with(array('result' => false))->willReturn('result: false');
     $yamlWriterProvider->write(vfsStream::url('settings/config.yml'), array('result' => false));
     $this->assertTrue($this->root->hasChild('settings/config.yml'));
 }
All Usage Examples Of org\bovigo\vfs\vfsStreamDirectory::hasChild