You are here

public function vfsStreamAbstractVisitorTestCase::visitWithFileCallsVisitFile in Zircon Profile 8

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

@test

File

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

Class

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

Namespace

org\bovigo\vfs\visitor

Code

public function visitWithFileCallsVisitFile() {
  $file = new vfsStreamFile('foo.txt');
  $this->abstractVisitor
    ->expects($this
    ->once())
    ->method('visitFile')
    ->with($this
    ->equalTo($file));
  $this
    ->assertSame($this->abstractVisitor, $this->abstractVisitor
    ->visit($file));
}