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

Commit

Permalink
Merge branch 'cs/zendframework/zendframework#6130-Zend_-classnames-re…
Browse files Browse the repository at this point in the history
…placement' into develop

Close zendframework/zendframework#6130
Forward Port zendframework/zendframework#6130
  • Loading branch information
Ocramius committed Apr 13, 2014
4 parents 8d3732a + a883a8d + 4aa93a8 + 09c50b4 commit 9379ad6
Show file tree
Hide file tree
Showing 28 changed files with 52 additions and 52 deletions.
4 changes: 2 additions & 2 deletions test/Helper/CycleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
use Zend\View\Helper;

/**
* Test class for Zend_View_Helper_Cycle.
* Test class for Zend\View\Helper\Cycle.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class CycleTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_Cycle
* @var Helper\Cycle
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/DoctypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Zend\View\Helper;

/**
* Test class for Zend_View_Helper_Doctype.
* Test class for Zend\View\Helper\Doctype.
*
* @group Zend_View
* @group Zend_View_Helper
Expand Down
2 changes: 1 addition & 1 deletion test/Helper/FlashMessengerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use ZendTest\Session\TestAsset\TestManager as SessionManager;

/**
* Test class for Zend_View_Helper_Cycle.
* Test class for Zend\View\Helper\Cycle.
*
* @group Zend_View
* @group Zend_View_Helper
Expand Down
4 changes: 2 additions & 2 deletions test/Helper/HeadLinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
use Zend\View\Exception\ExceptionInterface as ViewException;

/**
* Test class for Zend_View_Helper_HeadLink.
* Test class for Zend\View\Helper\HeadLink.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class HeadLinkTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HeadLink
* @var Helper\HeadLink
*/
public $helper;

Expand Down
4 changes: 2 additions & 2 deletions test/Helper/HeadMetaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
use Zend\View\Exception\ExceptionInterface as ViewException;

/**
* Test class for Zend_View_Helper_HeadMeta.
* Test class for Zend\View\Helper\HeadMeta.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class HeadMetaTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HeadMeta
* @var Helper\HeadMeta
*/
public $helper;

Expand Down
4 changes: 2 additions & 2 deletions test/Helper/HeadScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
use Zend\View;

/**
* Test class for Zend_View_Helper_HeadScript.
* Test class for Zend\View\Helper\HeadScript.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class HeadScriptTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HeadScript
* @var Helper\HeadScript
*/
public $helper;

Expand Down
4 changes: 2 additions & 2 deletions test/Helper/HeadStyleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
use Zend\View;

/**
* Test class for Zend_View_Helper_HeadStyle.
* Test class for Zend\View\Helper\HeadStyle.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class HeadStyleTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HeadStyle
* @var Helper\HeadStyle
*/
public $helper;

Expand Down
4 changes: 2 additions & 2 deletions test/Helper/HeadTitleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
use Zend\View\Helper;

/**
* Test class for Zend_View_Helper_HeadTitle.
* Test class for Zend\View\Helper\HeadTitle.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class HeadTitleTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HeadTitle
* @var Helper\HeadTitle
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/HtmlFlashTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class HtmlFlashTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HtmlFlash
* @var HtmlFlash
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/HtmlListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class HtmlListTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HtmlList
* @var Helper\HtmlList
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/HtmlObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class HtmlObjectTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HtmlObject
* @var HtmlObject
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/HtmlPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class HtmlPageTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HtmlPage
* @var HtmlPage
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/HtmlQuicktimeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class HtmlQuicktimeTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_HtmlQuicktime
* @var HtmlQuicktime
*/
public $helper;

Expand Down
4 changes: 2 additions & 2 deletions test/Helper/InlineScriptTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@


/**
* Test class for Zend_View_Helper_InlineScript.
* Test class for Zend\View\Helper\InlineScript.
*
* @group Zend_View
* @group Zend_View_Helper
*/
class InlineScriptTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Zend_View_Helper_InlineScript
* @var Helper\InlineScript
*/
public $helper;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/JsonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Zend\View\Helper\Json as JsonHelper;

/**
* Test class for Zend_View_Helper_Json
* Test class for Zend\View\Helper\Json
*
* @group Zend_View
* @group Zend_View_Helper
Expand Down
2 changes: 1 addition & 1 deletion test/Helper/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Zend\View\Renderer\PhpRenderer;

/**
* Test class for Zend_View_Helper_Layout
* Test class for Zend\View\Helper\Layout
*
* @group Zend_View
* @group Zend_View_Helper
Expand Down
4 changes: 2 additions & 2 deletions test/Helper/Navigation/AbstractTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ abstract class AbstractTest extends \PHPUnit_Framework_TestCase
/**
* View helper
*
* @var Zend\View\Helper\Navigation\AbstractHelper
* @var \Zend\View\Helper\Navigation\AbstractHelper
*/
protected $_helper;

/**
* The first container in the config file (files/navigation.xml)
*
* @var Zend_Navigation
* @var Navigation
*/
protected $_nav1;

Expand Down
2 changes: 1 addition & 1 deletion test/Helper/Navigation/BreadcrumbsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Zend\View\Exception\ExceptionInterface;

/**
* Tests Zend_View_Helper_Navigation_Breadcrumbs
* Tests Zend\View\Helper\Navigation\Breadcrumbs
*
* @group Zend_View
* @group Zend_View_Helper
Expand Down
8 changes: 4 additions & 4 deletions test/Helper/Navigation/LinksTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Zend\View\Helper\Navigation;

/**
* Tests Zend_View_Helper_Navigation_Links
* Tests Zend\View\Helper\Navigation\Links
*
* @group Zend_View
* @group Zend_View_Helper
Expand All @@ -36,7 +36,7 @@ class LinksTest extends AbstractTest
/**
* View helper
*
* @var Zend\View\Helper\Navigation\Links
* @var \Zend\View\Helper\Navigation\Links
*/
protected $_helper;

Expand Down Expand Up @@ -527,7 +527,7 @@ public function testFindRelationMustSpecifyRelOrRev()
try {
$this->_helper->findRelation($active, 'foo', 'bar');
$this->fail('An invalid value was given, but a ' .
'Zend_View_Exception was not thrown');
'Zend\View\Exception\InvalidArgumentException was not thrown');
} catch (View\Exception\ExceptionInterface $e) {
$this->assertContains('Invalid argument: $rel', $e->getMessage());
}
Expand All @@ -539,7 +539,7 @@ public function testRenderLinkMustSpecifyRelOrRev()
try {
$this->_helper->renderLink($active, 'foo', 'bar');
$this->fail('An invalid value was given, but a ' .
'Zend_View_Exception was not thrown');
'Zend\View\Exception\InvalidArgumentException was not thrown');
} catch (View\Exception\ExceptionInterface $e) {
$this->assertContains('Invalid relation attribute', $e->getMessage());
}
Expand Down
6 changes: 3 additions & 3 deletions test/Helper/Navigation/MenuTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace ZendTest\View\Helper\Navigation;

/**
* Tests Zend_View_Helper_Navigation_Menu
* Tests Zend\View\Helper\Navigation\Menu
*
* @group Zend_View
* @group Zend_View_Helper
Expand All @@ -27,7 +27,7 @@ class MenuTest extends AbstractTest
/**
* View helper
*
* @var Zend_View_Helper_Navigation_Menu
* @var \Zend\View\Helper\Navigation\Menu
*/
protected $_helper;

Expand Down Expand Up @@ -285,7 +285,7 @@ public function testRenderingPartialShouldFailOnInvalidPartialArray()

try {
$this->_helper->render();
$this->fail('invalid $partial should throw Zend_View_Exception');
$this->fail('invalid $partial should throw Zend\View\Exception\InvalidArgumentException');
} catch (\Zend\View\Exception\ExceptionInterface $e) {
}
}
Expand Down
12 changes: 6 additions & 6 deletions test/Helper/Navigation/NavigationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Zend\View\Renderer\PhpRenderer;

/**
* Tests Zend_View_Helper_Navigation
* Tests Zend\View\Helper\Navigation
*
* @group Zend_View
* @group Zend_View_Helper
Expand All @@ -35,7 +35,7 @@ class NavigationTest extends AbstractTest
/**
* View helper
*
* @var Zend\View\Helper\Navigation
* @var \Zend\View\Helper\Navigation
*/
protected $_helper;

Expand Down Expand Up @@ -305,7 +305,7 @@ public function testSetRoleThrowsExceptionWhenGivenAnInt()
try {
$this->_helper->setRole(1337);
$this->fail('An invalid argument was given, but a ' .
'Zend_View_Exception was not thrown');
'Zend\View\Exception\InvalidArgumentException was not thrown');
} catch (View\Exception\ExceptionInterface $e) {
$this->assertContains('$role must be a string', $e->getMessage());
}
Expand All @@ -316,7 +316,7 @@ public function testSetRoleThrowsExceptionWhenGivenAnArbitraryObject()
try {
$this->_helper->setRole(new \stdClass());
$this->fail('An invalid argument was given, but a ' .
'Zend_View_Exception was not thrown');
'Zend\View\Exception\InvalidArgumentException was not thrown');
} catch (View\Exception\ExceptionInterface $e) {
$this->assertContains('$role must be a string', $e->getMessage());
}
Expand Down Expand Up @@ -357,7 +357,7 @@ public function testSetDefaultRoleThrowsExceptionWhenGivenAnInt()
try {
Navigation\AbstractHelper::setDefaultRole(1337);
$this->fail('An invalid argument was given, but a ' .
'Zend_View_Exception was not thrown');
'Zend\View\Exception\InvalidArgumentException was not thrown');
} catch (View\Exception\ExceptionInterface $e) {
$this->assertContains('$role must be', $e->getMessage());
}
Expand All @@ -368,7 +368,7 @@ public function testSetDefaultRoleThrowsExceptionWhenGivenAnArbitraryObject()
try {
Navigation\AbstractHelper::setDefaultRole(new \stdClass());
$this->fail('An invalid argument was given, but a ' .
'Zend_View_Exception was not thrown');
'Zend\View\Exception\InvalidArgumentException was not thrown');
} catch (View\Exception\ExceptionInterface $e) {
$this->assertContains('$role must be', $e->getMessage());
}
Expand Down
8 changes: 4 additions & 4 deletions test/Helper/Navigation/SitemapTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
use Zend\View;

/**
* Tests Zend_View_Helper_Navigation_Sitemap
* Tests Zend\View\Helper\Navigation\Sitemap
*
* @group Zend_View
* @group Zend_View_Helper
Expand All @@ -32,7 +32,7 @@ class SitemapTest extends AbstractTest
/**
* View helper
*
* @var Zend_View_Helper_Navigation_Sitemap
* @var \Zend\View\Helper\Navigation\Sitemap
*/
protected $_helper;

Expand Down Expand Up @@ -185,7 +185,7 @@ public function testThrowExceptionOnInvalidLoc()
return;
}

$this->fail('A Zend_View_Exception was not thrown on invalid <loc />');
$this->fail('A Zend\View\Exception\InvalidArgumentException was not thrown on invalid <loc />');
}

public function testDisablingValidators()
Expand Down Expand Up @@ -260,6 +260,6 @@ public function testUseSchemaValidation()
return;
}

$this->fail('A Zend_View_Exception was not thrown when using Schema validation');
$this->fail('A Zend\View\Exception\InvalidArgumentException was not thrown when using Schema validation');
}
}
2 changes: 1 addition & 1 deletion test/Helper/PartialLoopTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Zend\View\Renderer\PhpRenderer as View;

/**
* Test class for Zend_View_Helper_PartialLoop.
* Test class for Zend\View\Helper\PartialLoop.
*
* @group Zend_View
* @group Zend_View_Helper
Expand Down
Loading

0 comments on commit 9379ad6

Please sign in to comment.