/** * testParserModifiesConfigurationAdaptive * * @return void * @group pdepend * @group pdepend::util * @group pdepend::util::configuration * @group unittest */ public function testParserModifiesConfigurationAdaptive() { $parser = new PHP_Depend_Util_Configuration_Parser($this->createFixture()); $values = $parser->parse($this->getTestConfiguration('pdepend.xml.dist')); $values = $parser->parse($this->getTestConfiguration('pdepend.xml')); self::assertEquals('Courier New', $values->imageConvert->fontFamily); self::assertEquals(23, $values->imageConvert->fontSize); }
/** * testParserOverwritesAlreadyDefinedConfigurationValues * * @return void */ public function testParserOverwritesAlreadyDefinedConfigurationValues() { $parser = new PHP_Depend_Util_Configuration_Parser($this->createFixture()); $parser->parse($this->getTestConfiguration('pdepend.xml.dist')); $values = $parser->parse($this->getTestConfiguration('pdepend.xml')); self::assertEquals('Courier New', $values->imageConvert->fontFamily); }