You are here

public function vfsStreamTestCase::inspectWithoutContentGivesRootToVisitor in Zircon Profile 8.0

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

@test @group issue_10 @since 0.10.0

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php, line 552

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function inspectWithoutContentGivesRootToVisitor() {
  $root = vfsStream::setup();
  $mockVisitor = $this
    ->getMock('org\\bovigo\\vfs\\visitor\\vfsStreamVisitor');
  $mockVisitor
    ->expects($this
    ->once())
    ->method('visitDirectory')
    ->with($this
    ->equalTo($root))
    ->will($this
    ->returnValue($mockVisitor));
  $this
    ->assertSame($mockVisitor, vfsStream::inspect($mockVisitor));
}