You are here

public function vfsStreamAbstractVisitorTestCase::visitWithBlockCallsVisitFile in Zircon Profile 8.0

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

tests that a block device eventually calls out to visit file

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/visitor/vfsStreamAbstractVisitorTestCase.php, line 74

Class

vfsStreamAbstractVisitorTestCase
Test for org\bovigo\vfs\visitor\vfsStreamAbstractVisitor.

Namespace

org\bovigo\vfs\visitor

Code

public function visitWithBlockCallsVisitFile() {
  $block = new vfsStreamBlock('foo');
  $this->abstractVisitor
    ->expects($this
    ->once())
    ->method('visitFile')
    ->with($this
    ->equalTo($block));
  $this
    ->assertSame($this->abstractVisitor, $this->abstractVisitor
    ->visit($block));
}