Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
[#1] fix Application tests
Browse files Browse the repository at this point in the history
- Use Application constants in tests, instead of string/error codes
  • Loading branch information
weierophinney committed Feb 28, 2012
1 parent 04b5132 commit 524f8be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Zend/Mvc/ApplicationTest.php
Expand Up @@ -499,7 +499,7 @@ public function testInabilityToRetrieveControllerShouldTriggerDispatchError()
});

$app->run();
$this->assertContains('404', $response->getContent());
$this->assertContains(Application::ERROR_CONTROLLER_NOT_FOUND, $response->getContent());
$this->assertContains('bad', $response->getContent());
}

Expand All @@ -523,7 +523,7 @@ public function testInvalidControllerTypeShouldTriggerDispatchError()
});

$app->run();
$this->assertContains('404', $response->getContent());
$this->assertContains(Application::ERROR_CONTROLLER_INVALID, $response->getContent());
$this->assertContains('bad', $response->getContent());
$this->assertContains('stdClass', $response->getContent());
}
Expand All @@ -546,7 +546,7 @@ public function testRoutingFailureShouldTriggerDispatchError()
});

$app->run();
$this->assertContains('404', $response->getContent());
$this->assertContains(Application::ERROR_CONTROLLER_NOT_FOUND, $response->getContent());
}

/**
Expand Down

0 comments on commit 524f8be

Please sign in to comment.