You are here

public function vfsStreamFileTestCase::defaultValues in Zircon Profile 8.0

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

test default values and methods

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamFileTestCase.php, line 36

Class

vfsStreamFileTestCase
Test for org\bovigo\vfs\vfsStreamFile.

Namespace

org\bovigo\vfs

Code

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