Skip to content

Commit

Permalink
Merge branch '3.0-clean-exceptions' of github.com:cakephp/cakephp int…
Browse files Browse the repository at this point in the history
…o 3.0-clean-exceptions
  • Loading branch information
lorenzo committed Aug 30, 2014
2 parents 5840bf2 + 4ae598d commit 43353c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/View/HelperRegistry.php
Expand Up @@ -61,7 +61,7 @@ public function __isset($helper) {

try {
$this->load($helper);
} catch (Error\MissingHelperException $exception) {
} catch (Exception\MissingHelperException $exception) {
if ($this->_View->plugin) {
$this->load($this->_View->plugin . '.' . $helper);
return true;
Expand Down
6 changes: 3 additions & 3 deletions tests/TestCase/View/ViewTest.php
Expand Up @@ -543,7 +543,7 @@ public function testGetViewFileNames() {
/**
* Test that getViewFileName() protects against malicious directory traversal.
*
* @expectedException Cake\Core\Exception\Exception
* @expectedException \InvalidArgumentException
* @return void
*/
public function testGetViewFileNameDirectoryTraversal() {
Expand Down Expand Up @@ -642,7 +642,7 @@ public function testGetLayoutFileNamePrefix() {
/**
* Test that getLayoutFileName() protects against malicious directory traversal.
*
* @expectedException Cake\Core\Exception\Exception
* @expectedException \InvalidArgumentException
* @return void
*/
public function testGetLayoutFileNameDirectoryTraversal() {
Expand Down Expand Up @@ -1479,7 +1479,7 @@ public function testStartBlocksTwice() {
* Test that an exception gets thrown when you leave a block open at the end
* of a view.
*
* @expectedException \Cake\Core\Exception\Exception
* @expectedException \LogicException
* @return void
*/
public function testExceptionOnOpenBlock() {
Expand Down

0 comments on commit 43353c8

Please sign in to comment.