You are here

public function vfsStreamAbstractVisitorTestCase::visitThrowsInvalidArgumentExceptionOnUnknownContentType 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::visitThrowsInvalidArgumentExceptionOnUnknownContentType()

@test @expectedException \InvalidArgumentException

File

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

Class

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

Namespace

org\bovigo\vfs\visitor

Code

public function visitThrowsInvalidArgumentExceptionOnUnknownContentType() {
  $mockContent = $this
    ->getMock('org\\bovigo\\vfs\\vfsStreamContent');
  $mockContent
    ->expects($this
    ->any())
    ->method('getType')
    ->will($this
    ->returnValue('invalid'));
  $this
    ->assertSame($this->abstractVisitor, $this->abstractVisitor
    ->visit($mockContent));
}