You are here

public function vfsStreamBlockTestCase::defaultValues in Zircon Profile 8

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

test default values and methods

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamBlockTestCase.php, line 33

Class

vfsStreamBlockTestCase
Test for org\bovigo\vfs\vfsStreamBlock.

Namespace

org\bovigo\vfs

Code

public function defaultValues() {
  $this
    ->assertEquals(vfsStreamContent::TYPE_BLOCK, $this->block
    ->getType());
  $this
    ->assertEquals('foo', $this->block
    ->getName());
  $this
    ->assertTrue($this->block
    ->appliesTo('foo'));
  $this
    ->assertFalse($this->block
    ->appliesTo('foo/bar'));
  $this
    ->assertFalse($this->block
    ->appliesTo('bar'));
}