Skip to content

Commit

Permalink
Use appropriate assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 27, 2017
1 parent 3eeb442 commit 0d4a394
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/Util/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,11 @@ public function testPHPConfigurationIsHandledCorrectly()

$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->assertFalse(\FOO);
$this->assertTrue(\BAR);
$this->assertFalse($GLOBALS['foo']);
$this->assertTrue($_ENV['foo']);
$this->assertEquals(1, \getenv('foo'));
$this->assertEquals('bar', $_POST['foo']);
$this->assertEquals('bar', $_GET['foo']);
$this->assertEquals('bar', $_COOKIE['foo']);
Expand All @@ -283,8 +283,8 @@ public function testHandlePHPConfigurationDoesNotOverwrittenExistingEnvArrayVari
$_ENV['foo'] = false;
$this->configuration->handlePHPConfiguration();

$this->assertEquals(false, $_ENV['foo']);
$this->assertEquals(true, \getenv('foo'));
$this->assertFalse($_ENV['foo']);
$this->assertEquals(1, \getenv('foo'));
}

/**
Expand All @@ -311,7 +311,7 @@ public function testHandlePHPConfigurationDoesNotOverriteVariablesFromPutEnv()
\putenv('foo=putenv');
$this->configuration->handlePHPConfiguration();

$this->assertEquals(true, $_ENV['foo']);
$this->assertTrue($_ENV['foo']);
$this->assertEquals('putenv', \getenv('foo'));
}

Expand Down

0 comments on commit 0d4a394

Please sign in to comment.