You are here

public function Util_ConfigurationTest::testShouldReadColorsWhenEmptyInConfigurationfile in Zircon Profile 8

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

@covers PHPUnit_Util_Configuration::getPHPUnitConfiguration

File

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

Class

Util_ConfigurationTest
@since Class available since Release 3.3.0

Code

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