Use phpunits output buffering instead of own one
This commit is contained in:
parent
1505b4dcd8
commit
89fe885646
@ -56,12 +56,9 @@ class PMA_warnMissingExtension_test extends PHPUnit_Framework_TestCase
|
||||
$ext = 'php_ext';
|
||||
$warn = 'The <a href="' . PMA_getPHPDocLink('book.' . $ext . '.php') . '" target="Documentation"><em>'.$ext.'</em></a> extension is missing. Please check your PHP configuration.';
|
||||
|
||||
ob_start();
|
||||
PMA_warnMissingExtension($ext, true);
|
||||
$printed = ob_get_contents();
|
||||
ob_end_clean();
|
||||
$this->expectOutputRegex('@' . preg_quote($warn) . '@');
|
||||
|
||||
$this->assertGreaterThan(0, strpos($printed, $warn));
|
||||
PMA_warnMissingExtension($ext, true);
|
||||
}
|
||||
|
||||
function testMissingExtensionFatalWithExtra()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user