/** * @test * @group issue_10 * @expectedException \InvalidArgumentException * @since 0.10.0 */ public function inspectWithoutContentAndWithoutRootThrowsInvalidArgumentException() { $mockVisitor = $this->getMock('org\\bovigo\\vfs\\visitor\\vfsStreamVisitor'); $mockVisitor->expects($this->never())->method('visit'); $mockVisitor->expects($this->never())->method('visitDirectory'); vfsStream::inspect($mockVisitor); }