/** * @covers Yeriomin\Getopt\Getopt::setUsageProvider */ public function testSetUsageProvider() { $this->assertInstanceOf('Yeriomin\\Getopt\\UsageProvider', $this->object->getUsageProvider()); $up = new UsageProviderMock(); $this->object->setUsageProvider($up); $this->assertInstanceOf('Yeriomin\\Getopt\\UsageProviderMock', $this->object->getUsageProvider()); }