|
|
@@ -910,7 +910,10 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
|
|
|
{
|
|
|
$this->_incrementAssertionCount();
|
|
|
if ($module != $this->request->getModuleName()) {
|
|
|
- $msg = sprintf('Failed asserting last module used was "%s"', $module);
|
|
|
+ $msg = sprintf('Failed asserting last module used <"%s"> was "%s"',
|
|
|
+ $this->request->getModuleName(),
|
|
|
+ $module
|
|
|
+ );
|
|
|
if (!empty($message)) {
|
|
|
$msg = $message . "\n" . $msg;
|
|
|
}
|
|
|
@@ -948,7 +951,10 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
|
|
|
{
|
|
|
$this->_incrementAssertionCount();
|
|
|
if ($controller != $this->request->getControllerName()) {
|
|
|
- $msg = sprintf('Failed asserting last controller used was "%s"', $controller);
|
|
|
+ $msg = sprintf('Failed asserting last controller used <"%s"> was "%s"',
|
|
|
+ $this->request->getControllerName(),
|
|
|
+ $controller
|
|
|
+ );
|
|
|
if (!empty($message)) {
|
|
|
$msg = $message . "\n" . $msg;
|
|
|
}
|
|
|
@@ -967,7 +973,10 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
|
|
|
{
|
|
|
$this->_incrementAssertionCount();
|
|
|
if ($controller == $this->request->getControllerName()) {
|
|
|
- $msg = sprintf('Failed asserting last controller used was NOT "%s"', $controller);
|
|
|
+ $msg = sprintf('Failed asserting last controller used <"%s"> was NOT "%s"',
|
|
|
+ $this->request->getControllerName(),
|
|
|
+ $controller
|
|
|
+ );
|
|
|
if (!empty($message)) {
|
|
|
$msg = $message . "\n" . $msg;
|
|
|
}
|
|
|
@@ -986,7 +995,7 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
|
|
|
{
|
|
|
$this->_incrementAssertionCount();
|
|
|
if ($action != $this->request->getActionName()) {
|
|
|
- $msg = sprintf('Failed asserting last action used was "%s"', $action);
|
|
|
+ $msg = sprintf('Failed asserting last action used <"%s"> was "%s"', $this->request->getActionName(), $action);
|
|
|
if (!empty($message)) {
|
|
|
$msg = $message . "\n" . $msg;
|
|
|
}
|
|
|
@@ -1005,7 +1014,7 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
|
|
|
{
|
|
|
$this->_incrementAssertionCount();
|
|
|
if ($action == $this->request->getActionName()) {
|
|
|
- $msg = sprintf('Failed asserting last action used was NOT "%s"', $action);
|
|
|
+ $msg = sprintf('Failed asserting last action used <"%s"> was NOT "%s"', $this->request->getActionName(), $action);
|
|
|
if (!empty($message)) {
|
|
|
$msg = $message . "\n" . $msg;
|
|
|
}
|
|
|
@@ -1025,7 +1034,10 @@ abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_Te
|
|
|
$this->_incrementAssertionCount();
|
|
|
$router = $this->frontController->getRouter();
|
|
|
if ($route != $router->getCurrentRouteName()) {
|
|
|
- $msg = sprintf('Failed asserting route matched was "%s"', $route);
|
|
|
+ $msg = sprintf('Failed asserting matched route was "%s", actual route is %s',
|
|
|
+ $route,
|
|
|
+ $router->getCurrentRouteName()
|
|
|
+ );
|
|
|
if (!empty($message)) {
|
|
|
$msg = $message . "\n" . $msg;
|
|
|
}
|