You are here

public function vfsStreamDirectoryTestCase::defaultValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php \org\bovigo\vfs\vfsStreamDirectoryTestCase::defaultValues()

test default values and methods

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryTestCase.php, line 47

Class

vfsStreamDirectoryTestCase
Test for org\bovigo\vfs\vfsStreamDirectory.

Namespace

org\bovigo\vfs

Code

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());
}