diff --git a/test/libraries/PMA_user_preferences_test.php b/test/libraries/PMA_user_preferences_test.php index 0a2ed94fd7..fa0691e720 100644 --- a/test/libraries/PMA_user_preferences_test.php +++ b/test/libraries/PMA_user_preferences_test.php @@ -414,38 +414,28 @@ class PMA_User_Preferences_Test extends PHPUnit_Framework_TestCase $GLOBALS['PMA_PHP_SELF'] = 'phpunit'; $result = PMA_userprefsAutoloadGetHeader(); - $this->assertTag( - PMA_getTagArray( - '
' - ), + $this->assertContains( + '', $result ); - $this->assertTag( - PMA_getTagArray( - 'assertContains( + 'assertTag( - PMA_getTagArray( - '' - ), + $this->assertContains( + '', $result ); - $this->assertTag( - PMA_getTagArray( - '' - ), + $this->assertContains( + '', $result ); - $this->assertTag( - PMA_getTagArray( - '' - ), + $this->assertContains( + '', $result ); } diff --git a/test/libraries/rte/PMA_EVN_getEditorForm_test.php b/test/libraries/rte/PMA_EVN_getEditorForm_test.php index adad7c3a3d..1c0e4360d8 100644 --- a/test/libraries/rte/PMA_EVN_getEditorForm_test.php +++ b/test/libraries/rte/PMA_EVN_getEditorForm_test.php @@ -62,11 +62,9 @@ class PMA_EVN_GetEditorForm_Test extends PHPUnit_Framework_TestCase { $GLOBALS['is_ajax_request'] = false; PMA_EVN_setGlobals(); - $this->assertTag( + $this->assertContains( $matcher, - PMA_EVN_getEditorForm('add', 'change', $data), - '', - false + PMA_EVN_getEditorForm('add', 'change', $data) ); } @@ -97,138 +95,43 @@ class PMA_EVN_GetEditorForm_Test extends PHPUnit_Framework_TestCase return array( array( $data, - array( - 'tag' => 'input', - 'attributes' => array( - 'name' => 'add_item' - ) - ) + " 'input', - 'attributes' => array( - 'name' => 'item_name' - ) - ) + " 'select', - 'attributes' => array( - 'name' => 'item_status' - ) - ) + " 'input', - 'attributes' => array( - 'name' => 'item_changetype' - ) - ) + " 'input', - 'attributes' => array( - 'name' => 'item_execute_at' - ) - ) + " 'input', - 'attributes' => array( - 'name' => 'item_interval_value' - ) - ) + "