Cleaned up issues with phpunit
4.2.x
This commit is contained in:
parent
0c40241b45
commit
3e08d173a1
2 changed files with 8 additions and 2 deletions
|
@ -40,6 +40,9 @@ class DisplayTest extends PHPUnit_Framework_TestCase
|
|||
{
|
||||
$this->display->return = 'invalid';
|
||||
$this->assertEquals('Invalid return type.', $this->display->render());
|
||||
|
||||
// Gotta do this or the test will be considered "risky"
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
public function testPHPSESSID()
|
||||
|
@ -50,6 +53,9 @@ class DisplayTest extends PHPUnit_Framework_TestCase
|
|||
|
||||
$this->assertTrue(in_array('Location: ' . $request_uri, xdebug_get_headers()));
|
||||
$this->assertEquals('Requested URI contains PHPSESSID, redirecting.', $return);
|
||||
|
||||
// Gotta do this or the test will be considered "risky"
|
||||
ob_end_clean();
|
||||
}
|
||||
|
||||
public function testNoParentTemplate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue