/** * @covers phpDocumentor\Command\Helper\ConfigurationHelper::getOption * @covers phpDocumentor\Command\Helper\ConfigurationHelper::valueIsEmpty * @covers phpDocumentor\Command\Helper\ConfigurationHelper::getConfigValueFromPath */ public function testIfValueIsRetrievedFromConfigIfNotInInput() { // Arrange $optionName = 'myOption'; $inputMock = $this->givenAnInputObject(); $this->whenAnOptionIsRetrievedFromInput($inputMock, $optionName, null); // Act $result = $this->fixture->getOption($inputMock, $optionName, 'parser/defaultPackageName'); // Assert $this->assertSame($this->configuration->getParser()->getDefaultPackageName(), $result); }
/** * @covers phpDocumentor\Configuration::__construct * @covers phpDocumentor\Configuration::getParser */ public function testIfParserConfigurationIsReturned() { $this->assertInstanceOf('phpDocumentor\\Parser\\Configuration', $this->fixture->getParser()); }