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

Commit

Permalink
Bring milestones/exceptions up-to-date with zf2/master
Browse files Browse the repository at this point in the history
Merge branch 'zf2/master' into milestones/exceptions

Conflicts:
	library/Zend/Amf/Parser/TypeLoader.php
	library/Zend/Amf/Server.php
	library/Zend/Application/AbstractBootstrap.php
	library/Zend/File/Transfer/Adapter/AbstractAdapter.php
	library/Zend/Filter/Inflector.php
	library/Zend/Filter/InputFilter.php
	library/Zend/Filter/StaticFilter.php
	library/Zend/Form/Element.php
	library/Zend/Form/Element/File.php
	library/Zend/InfoCard/XML/Security/Transform/Exception.php
	library/Zend/Navigation/Page/Mvc.php
	library/Zend/Paginator/Paginator.php
	library/Zend/Search/Lucene/Document/Exception.php
	library/Zend/Serializer/Adapter/Amf0.php
	library/Zend/Serializer/Adapter/Amf3.php
	library/Zend/Serializer/Exception.php
	library/Zend/Serializer/Serializer.php
	library/Zend/Service/Amazon/Ec2/AbstractService.php
	library/Zend/Tag/Cloud.php
	library/Zend/Tag/Cloud/Decorator/Exception.php
	library/Zend/Tag/Cloud/Decorator/HtmlTag.php
	library/Zend/Test/PHPUnit/ControllerTestCase.php
	library/Zend/Validator/StaticValidator.php
	library/Zend/Wildfire/Protocol/Exception.php
	library/Zend/Wildfire/Protocol/Exception/InvalidArgumentException.php
	tests/Zend/Application/AbstractBootstrapTest.php
	tests/Zend/Filter/InputTest.php
	tests/Zend/Filter/StaticFilterTest.php
	tests/Zend/Form/ElementTest.php
	tests/Zend/Form/FormTest.php
	tests/Zend/Paginator/PaginatorTest.php
	tests/Zend/Serializer/SerializerTest.php
	tests/Zend/Tag/Cloud/CloudTest.php
	tests/Zend/Tag/Cloud/Decorator/HtmlTagTest.php
	tests/Zend/Translate/Adapter/XmlTmTest.php
  • Loading branch information
weierophinney committed Oct 30, 2010
13 parents 29be330 + eae6146 + 1cc7a46 + 1d9542f + a22d6e2 + 3496b67 + 9398e77 + 687d980 + 900dc7d + 21f6363 + 450e488 + 24626f5 + adf1f8e commit 8c442a3
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 28 deletions.
1 change: 0 additions & 1 deletion src/AbstractPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @package Zend_Navigation
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion src/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @package Zend_Navigation
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion src/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @package Zend_Navigation
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion src/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
* @package Zend_Navigation
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
15 changes: 6 additions & 9 deletions src/Page/Mvc.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Page
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand All @@ -26,16 +25,13 @@
namespace Zend\Navigation\Page;

use Zend\Navigation\AbstractPage,
Zend\Navigation\Exception\InvalidArgumentException;
Zend\Navigation\Exception\InvalidArgumentException,
Zend\Controller\Front as FrontController;

/**
* Represents a page that is defined using module, controller, action, route
* name and route params to assemble the href
*
* @uses \Zend\Controller\Action\HelperBroker
* @uses \Zend\Controller\Front
* @uses \Zend\Navigation\InvalidArgumentException
* @uses \Zend\Navigation\Page\Page
* @category Zend
* @package Zend_Navigation
* @subpackage Page
Expand Down Expand Up @@ -124,7 +120,7 @@ class Mvc extends AbstractPage
public function isActive($recursive = false)
{
if (!$this->_active) {
$front = \Zend\Controller\Front::getInstance();
$front = FrontController::getInstance();
$reqParams = $front->getRequest()->getParams();

if (!array_key_exists('module', $reqParams)) {
Expand Down Expand Up @@ -176,8 +172,9 @@ public function getHref()
}

if (null === self::$_urlHelper) {
self::$_urlHelper =
\Zend\Controller\Action\HelperBroker::getStaticHelper('url');
$front = FrontController::getInstance();
$broker = $front->getHelperBroker();
self::$_urlHelper = $broker->load('url');
}

$params = $this->getParams();
Expand Down
1 change: 0 additions & 1 deletion src/Page/Uri.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage Page
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/ContainerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/NavigationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id:$
*/

/**
Expand Down
12 changes: 7 additions & 5 deletions test/Page/MvcTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
* @namespace
*/
namespace ZendTest\Navigation\Page;
use Zend\Controller\Request;
use Zend\Navigation\Page;
use Zend\Navigation;

use Zend\Controller\Front as FrontController,
Zend\Controller\Request,
Zend\Navigation\Page,
Zend\Navigation;

/**
* Tests the class Zend_Navigation_Page_Mvc
Expand Down Expand Up @@ -359,7 +360,8 @@ public function testSpecifyingAnotherUrlHelperToGenerateHrefs()
$expected = \ZendTest\Navigation\TestAsset\UrlHelper::RETURN_URL;
$actual = $page->getHref();

$old = \Zend\Controller\Action\HelperBroker::getStaticHelper('URL');
$front = FrontController::getInstance();
$old = $front->getHelperBroker()->load('URL');
Page\Mvc::setUrlHelper($old);

$this->assertEquals($expected, $actual);
Expand Down
1 change: 0 additions & 1 deletion test/Page/UriTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/PageFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/InvalidPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down
1 change: 0 additions & 1 deletion test/TestAsset/UrlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* @subpackage UnitTests
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @version $Id$
*/

/**
Expand Down

0 comments on commit 8c442a3

Please sign in to comment.