Cleaned up issues with phpunit 4.2.x

This commit is contained in:
Josh Sherman 2014-09-13 16:43:29 -04:00
parent 0c40241b45
commit 3e08d173a1
2 changed files with 8 additions and 2 deletions

View file

@ -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()