/** * @covers Yeriomin\Getopt\Getopt::setParser */ public function testSetParser() { include_once dirname(__FILE__) . '/ParserMock.php'; $this->assertInstanceOf('Yeriomin\\Getopt\\Parser', $this->object->getParser()); $p = new ParserMock(); $this->object->setParser($p); $this->assertInstanceOf('Yeriomin\\Getopt\\ParserMock', $this->object->getParser()); }