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

Commit

Permalink
Merge branch 'navigation-renamed-interfaces' of https://github.com/pr…
Browse files Browse the repository at this point in the history
…olic/zf2 into feature/zen27-navigation
  • Loading branch information
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/Exception/BadMethodCallException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

namespace Zend\Navigation\Exception;

use Zend\Navigation\Exception;

/**
* Navigation bad method call exception
*
Expand All @@ -32,5 +30,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class BadMethodCallException extends \BadMethodCallException implements Exception
class BadMethodCallException
extends \BadMethodCallException
implements ExceptionInterface
{}
6 changes: 3 additions & 3 deletions src/Exception/DomainException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

namespace Zend\Navigation\Exception;

use Zend\Navigation\Exception;

/**
* Navigation domain exception
*
Expand All @@ -32,5 +30,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class DomainException extends \DomainException implements Exception
class DomainException
extends \DomainException
implements ExceptionInterface
{}
4 changes: 2 additions & 2 deletions src/Exception.php → src/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* @license http://framework.zend.com/license/new-bsd New BSD License
*/

namespace Zend\Navigation;
namespace Zend\Navigation\Exception;

/**
* Navigation exception
Expand All @@ -28,7 +28,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
interface Exception
interface ExceptionInterface
{

}
6 changes: 3 additions & 3 deletions src/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

namespace Zend\Navigation\Exception;

use Zend\Navigation\Exception;

/**
* Navigation invalid argument exception
*
Expand All @@ -32,5 +30,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class InvalidArgumentException extends \InvalidArgumentException implements Exception
class InvalidArgumentException
extends \InvalidArgumentException
implements ExceptionInterface
{}
6 changes: 3 additions & 3 deletions src/Exception/OutOfBoundsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@

namespace Zend\Navigation\Exception;

use Zend\Navigation\Exception;

/**
* Navigation out of bounds exception
*
Expand All @@ -32,5 +30,7 @@
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class OutOfBoundsException extends \OutOfBoundsException implements Exception
class OutOfBoundsException
extends \OutOfBoundsException
implements ExceptionInterface
{}
2 changes: 1 addition & 1 deletion src/Page/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
namespace Zend\Navigation\Page;

use Traversable,
Zend\Acl\Resource as AclResource,
Zend\Acl\Resource\ResourceInterface as AclResource,
Zend\Navigation\Container,
Zend\Navigation\Exception,
Zend\Stdlib\ArrayUtils;
Expand Down
2 changes: 1 addition & 1 deletion test/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function testConstructorShouldThrowExceptionOnInvalidArgument()
$this->fail('An invalid argument was given to the constructor, ' .
'but a Zend\Navigation\Exception\InvalidArgumentException was ' .
'not thrown');
} catch (Navigation\Exception $e) {
} catch (Navigation\Exception\ExceptionInterface $e) {
$this->assertContains('Invalid argument: $pages', $e->getMessage());
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/Page/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public function testSetAndGetFragmentIdentifier()
try {
$page->setFragment($invalid);
$this->fail('An invalid value was set, but a ' .
'Zend_Navigation_Exception was not thrown');
'Zend\Navigation\Exception\InvalidArgumentException was not thrown');
} catch (Navigation\Exception\InvalidArgumentException $e) {
$this->assertContains(
'Invalid argument: $fragment', $e->getMessage()
Expand Down

0 comments on commit 9d3ce53

Please sign in to comment.