public function vfsStreamAbstractVisitorTestCase::visitThrowsInvalidArgumentExceptionOnUnknownContentType in Zircon Profile 8
Same name and namespace in other branches
- 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
Namespace
org\bovigo\vfs\visitorCode
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));
}