Skip to content

Commit

Permalink
broke the unit tests with find and replace =x all fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Davis committed Jul 2, 2009
1 parent a935f3b commit 5be944b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/test/phpunit_testcase.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ abstract class NimblePHPUnitTestCase extends PHPUnit_Framework_TestCase {
*/
public function assertXpath($source, $path, $match = self::XpathExists, $count = 0) {
if (($xml = $this->stringToXML($source)) !== false) {
if (($result = $xml->css selector($path)) !== false) {
if (($result = $xml->xpath($path)) !== false) {
if ($match === true) { $match = self::XpathExists; }
if ($match === false) { $match = self::XpathNotExists; }
switch ($match) {
Expand Down Expand Up @@ -154,7 +154,7 @@ public function get($action, $action_params = array(), $params = array(), $sessi
global $_SESSION, $_POST, $_GET;
$_GET = $params;
$_SESSION = $session;
$_POST['_METHOD'] = 'GET';
$_POST['_method'] = 'GET';
$this->load_action($action, $action_params);
}

Expand All @@ -170,7 +170,7 @@ public function post($action, $action_params = array(), $params = array(), $sess
global $_SESSION, $_POST, $_GET;
$_POST = $_GET = $params;
$_SESSION = $session;
$_POST['_METHOD'] = 'POST';
$_POST['_method'] = 'POST';
$this->load_action($action, $action_params);
}

Expand All @@ -186,7 +186,7 @@ public function put($action, $action_params = array(), $params = array(), $sessi
global $_SESSION, $_POST, $_GET;
$_POST = $_GET = $params;
$_SESSION = $session;
$_POST['_METHOD'] = 'PUT';
$_POST['_method'] = 'PUT';
$this->load_action($action, $action_params);
}

Expand All @@ -202,8 +202,8 @@ public function delete($action, $action_params = array(), $params = array(), $se
global $_SESSION, $_POST, $_GET;
$_POST = $_GET = $params;
$_SESSION = $session;
$_POST['_METHOD'] = 'DELETE';
$this->load_action($controller, $action, $action_params);
$_POST['_method'] = 'DELETE';
$this->load_action($action, $action_params);
}


Expand Down

0 comments on commit 5be944b

Please sign in to comment.