You are here

public function Util_ConfigurationTest::testShouldReadColorsWhenTrueInConfigurationfile in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php \Util_ConfigurationTest::testShouldReadColorsWhenTrueInConfigurationfile()

@covers PHPUnit_Util_Configuration::getPHPUnitConfiguration

File

vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php, line 37

Class

Util_ConfigurationTest
@since Class available since Release 3.3.0

Code

public function testShouldReadColorsWhenTrueInConfigurationfile() {
  $configurationFilename = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . 'configuration.colors.true.xml';
  $configurationInstance = PHPUnit_Util_Configuration::getInstance($configurationFilename);
  $configurationValues = $configurationInstance
    ->getPHPUnitConfiguration();
  $this
    ->assertEquals(PHPUnit_TextUI_ResultPrinter::COLOR_AUTO, $configurationValues['colors']);
}