Use regexp here as well

This commit is contained in:
Michal Čihař 2012-08-23 10:03:11 +02:00
parent dc953ec477
commit 2adb4185d0

View File

@ -146,8 +146,8 @@ class PMA_operations_test extends PHPUnit_Framework_TestCase
*/
public function testPMA_getMaintainActionlink(){
$this->assertEquals(
'<li><a class="maintain_action" href="tbl_operations.php?name=foo&amp;value=bar&amp;token=token">post</a></li>',
$this->assertRegExp(
'/.*href="tbl_operations.php.*post.*/',
PMA_getMaintainActionlink(
"post",
array("name" => 'foo', "value" => 'bar'),