Refactored test case.

Signed-off-by: Mark Story <mark@mark-story.com>
This commit is contained in:
Phally 2009-11-04 20:51:39 +01:00 committed by mark_story
parent bb92a47ddb
commit 324b479b1c

View file

@ -175,8 +175,8 @@ class CakeTestCaseTest extends CakeTestCase {
$input = '<p><strong>' . $value . '</strong></p>'; $input = '<p><strong>' . $value . '</strong></p>';
$pattern = array( $pattern = array(
'p' => array(), '<p',
'strong' => array(), '<strong',
$value, $value,
'/strong', '/strong',
'/p' '/p'
@ -185,13 +185,13 @@ class CakeTestCaseTest extends CakeTestCase {
$input = '<p><strong>' . $value . '</strong></p><p><strong>' . $value . '</strong></p>'; $input = '<p><strong>' . $value . '</strong></p><p><strong>' . $value . '</strong></p>';
$pattern = array( $pattern = array(
array('p' => array()), '<p',
array('strong' => array()), '<strong',
$value, $value,
'/strong', '/strong',
'/p', '/p',
array('p' => array()), '<p',
array('strong' => array()), '<strong',
$value, $value,
'/strong', '/strong',
'/p', '/p',
@ -200,13 +200,13 @@ class CakeTestCaseTest extends CakeTestCase {
$input = '<p><strong>' . $value . '</strong></p><p id="' . $value . '"><strong>' . $value . '</strong></p>'; $input = '<p><strong>' . $value . '</strong></p><p id="' . $value . '"><strong>' . $value . '</strong></p>';
$pattern = array( $pattern = array(
array('p' => array()), '<p',
array('strong' => array()), '<strong',
$value, $value,
'/strong', '/strong',
'/p', '/p',
array('p' => array('id' => $value)), 'p' => array('id' => $value),
array('strong' => array()), '<strong',
$value, $value,
'/strong', '/strong',
'/p', '/p',