/** * test default values and methods * * @test */ public function defaultValues() { $this->assertEquals(vfsStreamContent::TYPE_DIR, $this->dir->getType()); $this->assertEquals('foo', $this->dir->getName()); $this->assertTrue($this->dir->appliesTo('foo')); $this->assertTrue($this->dir->appliesTo('foo/bar')); $this->assertFalse($this->dir->appliesTo('bar')); $this->assertEquals(array(), $this->dir->getChildren()); }