From 8e7816a8d0b463d9cfdf7f5ce1f41043d4deb66d Mon Sep 17 00:00:00 2001 From: Maks3w Date: Wed, 11 Jul 2012 22:09:11 +0200 Subject: [PATCH] [zen-46] Replace use statements in documentation and tests --- test/Helper/BasePathTest.php | 4 ++-- test/Helper/EscapeCssTest.php | 6 +++--- test/Helper/EscapeHtmlAttrTest.php | 6 +++--- test/Helper/EscapeHtmlTest.php | 6 +++--- test/Helper/EscapeJsTest.php | 6 +++--- test/Helper/EscapeUrlTest.php | 6 +++--- test/Helper/GravatarTest.php | 6 +++--- test/Helper/JsonTest.php | 8 ++++---- test/Helper/PartialLoopTest.php | 8 ++++---- test/Helper/PartialTest.php | 6 +++--- test/Helper/RenderChildModelTest.php | 10 +++++----- test/Model/JsonModelTest.php | 10 +++++----- test/Model/ViewModelTest.php | 8 ++++---- test/Renderer/FeedRendererTest.php | 12 ++++++------ test/Renderer/JsonRendererTest.php | 10 +++++----- test/Resolver/AggregateResolverTest.php | 6 +++--- test/Resolver/TemplateMapResolverTest.php | 6 +++--- test/Strategy/FeedStrategyTest.php | 22 ++++++++++----------- test/Strategy/JsonStrategyTest.php | 22 ++++++++++----------- test/Strategy/PhpRendererStrategyTest.php | 18 ++++++++--------- test/ViewEventTest.php | 12 ++++++------ test/ViewTest.php | 24 +++++++++++------------ 22 files changed, 111 insertions(+), 111 deletions(-) diff --git a/test/Helper/BasePathTest.php b/test/Helper/BasePathTest.php index 4bd6aa8b..4c5ac7de 100644 --- a/test/Helper/BasePathTest.php +++ b/test/Helper/BasePathTest.php @@ -10,8 +10,8 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - Zend\View\Helper\BasePath; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Helper\BasePath; /** * @category Zend diff --git a/test/Helper/EscapeCssTest.php b/test/Helper/EscapeCssTest.php index 4fe3d317..c7e06357 100644 --- a/test/Helper/EscapeCssTest.php +++ b/test/Helper/EscapeCssTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\View\Helper\EscapeCss as EscapeHelper; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\View\Helper\EscapeCss as EscapeHelper; class EscapeCssTest extends TestCase { diff --git a/test/Helper/EscapeHtmlAttrTest.php b/test/Helper/EscapeHtmlAttrTest.php index f1100392..3e2e99b9 100644 --- a/test/Helper/EscapeHtmlAttrTest.php +++ b/test/Helper/EscapeHtmlAttrTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\View\Helper\EscapeHtmlAttr as EscapeHelper; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\View\Helper\EscapeHtmlAttr as EscapeHelper; class EscapeHtmlAttrTest extends TestCase { diff --git a/test/Helper/EscapeHtmlTest.php b/test/Helper/EscapeHtmlTest.php index d2f08f65..6bece4ff 100644 --- a/test/Helper/EscapeHtmlTest.php +++ b/test/Helper/EscapeHtmlTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\View\Helper\EscapeHtml as EscapeHelper; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\View\Helper\EscapeHtml as EscapeHelper; class EscapeHtmlTest extends TestCase { diff --git a/test/Helper/EscapeJsTest.php b/test/Helper/EscapeJsTest.php index 53567c3f..a605bfac 100644 --- a/test/Helper/EscapeJsTest.php +++ b/test/Helper/EscapeJsTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\View\Helper\EscapeJs as EscapeHelper; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\View\Helper\EscapeJs as EscapeHelper; class EscapeJsTest extends TestCase { diff --git a/test/Helper/EscapeUrlTest.php b/test/Helper/EscapeUrlTest.php index 3562e869..ab894e70 100644 --- a/test/Helper/EscapeUrlTest.php +++ b/test/Helper/EscapeUrlTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\View\Helper\EscapeUrl as EscapeHelper; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\View\Helper\EscapeUrl as EscapeHelper; class EscapeUrlTest extends TestCase { diff --git a/test/Helper/GravatarTest.php b/test/Helper/GravatarTest.php index 9752f7e9..a4ae0a81 100644 --- a/test/Helper/GravatarTest.php +++ b/test/Helper/GravatarTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - Zend\View\Renderer\PhpRenderer as View, - Zend\View\Helper\Gravatar; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Renderer\PhpRenderer as View; +use Zend\View\Helper\Gravatar; /** * @category Zend diff --git a/test/Helper/JsonTest.php b/test/Helper/JsonTest.php index bda94b3d..a9780e56 100644 --- a/test/Helper/JsonTest.php +++ b/test/Helper/JsonTest.php @@ -10,10 +10,10 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - Zend\Http\Response, - Zend\Json\Json as JsonFormatter, - Zend\View\Helper\Json as JsonHelper; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\Http\Response; +use Zend\Json\Json as JsonFormatter; +use Zend\View\Helper\Json as JsonHelper; /** * Test class for Zend_View_Helper_Json diff --git a/test/Helper/PartialLoopTest.php b/test/Helper/PartialLoopTest.php index c6290e01..f976419c 100644 --- a/test/Helper/PartialLoopTest.php +++ b/test/Helper/PartialLoopTest.php @@ -11,10 +11,10 @@ namespace ZendTest\View\Helper; use ArrayObject; -use Iterator, - PHPUnit_Framework_TestCase as TestCase, - Zend\View\Helper\PartialLoop, - Zend\View\Renderer\PhpRenderer as View; +use Iterator; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Helper\PartialLoop; +use Zend\View\Renderer\PhpRenderer as View; /** * Test class for Zend_View_Helper_PartialLoop. diff --git a/test/Helper/PartialTest.php b/test/Helper/PartialTest.php index a9b3eef0..46d69973 100644 --- a/test/Helper/PartialTest.php +++ b/test/Helper/PartialTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - Zend\View\Helper\Partial, - Zend\View\Renderer\PhpRenderer as View; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Helper\Partial; +use Zend\View\Renderer\PhpRenderer as View; /** * Test class for Partial view helper. diff --git a/test/Helper/RenderChildModelTest.php b/test/Helper/RenderChildModelTest.php index d430087d..ea008faf 100644 --- a/test/Helper/RenderChildModelTest.php +++ b/test/Helper/RenderChildModelTest.php @@ -10,11 +10,11 @@ namespace ZendTest\View\Helper; -use PHPUnit_Framework_TestCase as TestCase, - Zend\View\Helper\RenderChildModel, - Zend\View\Model\ViewModel, - Zend\View\Renderer\PhpRenderer, - Zend\View\Resolver\TemplateMapResolver; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Helper\RenderChildModel; +use Zend\View\Model\ViewModel; +use Zend\View\Renderer\PhpRenderer; +use Zend\View\Resolver\TemplateMapResolver; /** * @category Zend diff --git a/test/Model/JsonModelTest.php b/test/Model/JsonModelTest.php index a63f8f4e..45686d41 100644 --- a/test/Model/JsonModelTest.php +++ b/test/Model/JsonModelTest.php @@ -11,11 +11,11 @@ namespace ZendTest\View\Model; use ArrayObject; -use stdClass, - PHPUnit_Framework_TestCase as TestCase, - Zend\View\Model\JsonModel, - Zend\View\Variables as ViewVariables, - Zend\Json\Json; +use stdClass; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Model\JsonModel; +use Zend\View\Variables as ViewVariables; +use Zend\Json\Json; /** * @category Zend diff --git a/test/Model/ViewModelTest.php b/test/Model/ViewModelTest.php index c48a6294..76be4e2e 100644 --- a/test/Model/ViewModelTest.php +++ b/test/Model/ViewModelTest.php @@ -11,10 +11,10 @@ namespace ZendTest\View\Model; use ArrayObject; -use stdClass, - PHPUnit_Framework_TestCase as TestCase, - Zend\View\Model\ViewModel, - Zend\View\Variables as ViewVariables; +use stdClass; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Model\ViewModel; +use Zend\View\Variables as ViewVariables; /** * @category Zend diff --git a/test/Renderer/FeedRendererTest.php b/test/Renderer/FeedRendererTest.php index 9ddec66e..eab1bfac 100644 --- a/test/Renderer/FeedRendererTest.php +++ b/test/Renderer/FeedRendererTest.php @@ -10,12 +10,12 @@ namespace ZendTest\View\Renderer; -use PHPUnit_Framework_TestCase as TestCase, - Zend\Feed\Writer\Factory as FeedFactory, - Zend\View\Model\ModelInterface as Model, - Zend\View\Model\FeedModel, - Zend\View\Model\ViewModel, - Zend\View\Renderer\FeedRenderer; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\Feed\Writer\Factory as FeedFactory; +use Zend\View\Model\ModelInterface as Model; +use Zend\View\Model\FeedModel; +use Zend\View\Model\ViewModel; +use Zend\View\Renderer\FeedRenderer; /** * @category Zend diff --git a/test/Renderer/JsonRendererTest.php b/test/Renderer/JsonRendererTest.php index 3b95e352..7dc7c9eb 100644 --- a/test/Renderer/JsonRendererTest.php +++ b/test/Renderer/JsonRendererTest.php @@ -10,11 +10,11 @@ namespace ZendTest\View\Renderer; -use ArrayObject, - PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\View\Renderer\JsonRenderer, - Zend\View\Model\ViewModel; +use ArrayObject; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\View\Renderer\JsonRenderer; +use Zend\View\Model\ViewModel; /** * @category Zend diff --git a/test/Resolver/AggregateResolverTest.php b/test/Resolver/AggregateResolverTest.php index acb87737..fa773673 100644 --- a/test/Resolver/AggregateResolverTest.php +++ b/test/Resolver/AggregateResolverTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Resolver; -use ArrayObject, - PHPUnit_Framework_TestCase as TestCase, - Zend\View\Resolver; +use ArrayObject; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Resolver; /** * @category Zend diff --git a/test/Resolver/TemplateMapResolverTest.php b/test/Resolver/TemplateMapResolverTest.php index ad32765e..7c74ad1f 100644 --- a/test/Resolver/TemplateMapResolverTest.php +++ b/test/Resolver/TemplateMapResolverTest.php @@ -10,9 +10,9 @@ namespace ZendTest\View\Resolver; -use ArrayObject, - PHPUnit_Framework_TestCase as TestCase, - Zend\View\Resolver\TemplateMapResolver; +use ArrayObject; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\View\Resolver\TemplateMapResolver; /** * @category Zend diff --git a/test/Strategy/FeedStrategyTest.php b/test/Strategy/FeedStrategyTest.php index fbecd79a..a6e6f3a0 100644 --- a/test/Strategy/FeedStrategyTest.php +++ b/test/Strategy/FeedStrategyTest.php @@ -10,17 +10,17 @@ namespace ZendTest\View\Strategy; -use PHPUnit_Framework_TestCase as TestCase, - Zend\EventManager\EventManager, - Zend\Feed\Writer\FeedFactory, - Zend\Http\Request as HttpRequest, - Zend\Http\Response as HttpResponse, - Zend\View\Model\ModelInterface as Model, - Zend\View\Model\FeedModel, - Zend\View\Model\ViewModel, - Zend\View\Renderer\FeedRenderer, - Zend\View\Strategy\FeedStrategy, - Zend\View\ViewEvent; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\EventManager\EventManager; +use Zend\Feed\Writer\FeedFactory; +use Zend\Http\Request as HttpRequest; +use Zend\Http\Response as HttpResponse; +use Zend\View\Model\ModelInterface as Model; +use Zend\View\Model\FeedModel; +use Zend\View\Model\ViewModel; +use Zend\View\Renderer\FeedRenderer; +use Zend\View\Strategy\FeedStrategy; +use Zend\View\ViewEvent; /** * @category Zend diff --git a/test/Strategy/JsonStrategyTest.php b/test/Strategy/JsonStrategyTest.php index 9d65c9c7..f2b598e2 100644 --- a/test/Strategy/JsonStrategyTest.php +++ b/test/Strategy/JsonStrategyTest.php @@ -10,17 +10,17 @@ namespace ZendTest\View\Strategy; -use PHPUnit_Framework_TestCase as TestCase, - Zend\EventManager\EventManager, - Zend\Http\Request as HttpRequest, - Zend\Http\Response as HttpResponse, - Zend\View\Model\ModelInterface as Model, - Zend\View\Model\JsonModel, - Zend\View\Model\ViewModel, - Zend\View\Renderer\JsonRenderer, - Zend\View\Strategy\JsonStrategy, - Zend\View\ViewEvent, - Zend\Stdlib\Parameters; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\EventManager\EventManager; +use Zend\Http\Request as HttpRequest; +use Zend\Http\Response as HttpResponse; +use Zend\View\Model\ModelInterface as Model; +use Zend\View\Model\JsonModel; +use Zend\View\Model\ViewModel; +use Zend\View\Renderer\JsonRenderer; +use Zend\View\Strategy\JsonStrategy; +use Zend\View\ViewEvent; +use Zend\Stdlib\Parameters; /** * @category Zend diff --git a/test/Strategy/PhpRendererStrategyTest.php b/test/Strategy/PhpRendererStrategyTest.php index 08f4b4cd..ac5dc30f 100644 --- a/test/Strategy/PhpRendererStrategyTest.php +++ b/test/Strategy/PhpRendererStrategyTest.php @@ -10,15 +10,15 @@ namespace ZendTest\View\Strategy; -use PHPUnit_Framework_TestCase as TestCase, - Zend\EventManager\EventManager, - Zend\Http\Request as HttpRequest, - Zend\Http\Response as HttpResponse, - Zend\View\Helper\Placeholder\Registry as PlaceholderRegistry, - Zend\View\Model\ModelInterface as Model, - Zend\View\Renderer\PhpRenderer, - Zend\View\Strategy\PhpRendererStrategy, - Zend\View\ViewEvent; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\EventManager\EventManager; +use Zend\Http\Request as HttpRequest; +use Zend\Http\Response as HttpResponse; +use Zend\View\Helper\Placeholder\Registry as PlaceholderRegistry; +use Zend\View\Model\ModelInterface as Model; +use Zend\View\Renderer\PhpRenderer; +use Zend\View\Strategy\PhpRendererStrategy; +use Zend\View\ViewEvent; /** * @category Zend diff --git a/test/ViewEventTest.php b/test/ViewEventTest.php index 329f641a..65ff0104 100644 --- a/test/ViewEventTest.php +++ b/test/ViewEventTest.php @@ -10,12 +10,12 @@ namespace ZendTest\View; -use PHPUnit_Framework_TestCase as TestCase, - Zend\Http\Request, - Zend\Http\Response, - Zend\View\Model\ViewModel, - Zend\View\Renderer\PhpRenderer, - Zend\View\ViewEvent; +use PHPUnit_Framework_TestCase as TestCase; +use Zend\Http\Request; +use Zend\Http\Response; +use Zend\View\Model\ViewModel; +use Zend\View\Renderer\PhpRenderer; +use Zend\View\ViewEvent; class ViewEventTest extends TestCase { diff --git a/test/ViewTest.php b/test/ViewTest.php index 8db36866..d35639c8 100644 --- a/test/ViewTest.php +++ b/test/ViewTest.php @@ -10,18 +10,18 @@ namespace ZendTest\View; -use ArrayObject, - PHPUnit_Framework_TestCase as TestCase, - stdClass, - Zend\Http\Request, - Zend\Http\Response, - Zend\View\Model\ViewModel, - Zend\View\Model\JsonModel, - Zend\View\Renderer\PhpRenderer, - Zend\View\Renderer, - Zend\View\Resolver, - Zend\View\Variables as ViewVariables, - Zend\View\View; +use ArrayObject; +use PHPUnit_Framework_TestCase as TestCase; +use stdClass; +use Zend\Http\Request; +use Zend\Http\Response; +use Zend\View\Model\ViewModel; +use Zend\View\Model\JsonModel; +use Zend\View\Renderer\PhpRenderer; +use Zend\View\Renderer; +use Zend\View\Resolver; +use Zend\View\Variables as ViewVariables; +use Zend\View\View; class ViewTest extends TestCase {