1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Use phpunits output buffering instead of own one

This commit is contained in:
Michal Čihař
2012-09-17 13:23:42 +02:00
parent 1505b4dcd8
commit 89fe885646

View File

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