public function Util_ConfigurationTest::testPHPConfigurationIsHandledCorrectly in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/tests/Util/ConfigurationTest.php \Util_ConfigurationTest::testPHPConfigurationIsHandledCorrectly()
@backupGlobals enabled @covers PHPUnit_Util_Configuration::handlePHPConfiguration
File
- vendor/
phpunit/ phpunit/ tests/ Util/ ConfigurationTest.php, line 295
Class
- Util_ConfigurationTest
- @since Class available since Release 3.3.0
Code
public function testPHPConfigurationIsHandledCorrectly() {
$this->configuration
->handlePHPConfiguration();
$path = dirname(__DIR__) . DIRECTORY_SEPARATOR . '_files' . DIRECTORY_SEPARATOR . '.' . PATH_SEPARATOR . '/path/to/lib';
$this
->assertStringStartsWith($path, ini_get('include_path'));
$this
->assertEquals(false, FOO);
$this
->assertEquals(true, BAR);
$this
->assertEquals(false, $GLOBALS['foo']);
$this
->assertEquals(true, $_ENV['foo']);
$this
->assertEquals(true, getenv('foo'));
$this
->assertEquals('bar', $_POST['foo']);
$this
->assertEquals('bar', $_GET['foo']);
$this
->assertEquals('bar', $_COOKIE['foo']);
$this
->assertEquals('bar', $_SERVER['foo']);
$this
->assertEquals('bar', $_FILES['foo']);
$this
->assertEquals('bar', $_REQUEST['foo']);
}