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

Commit

Permalink
Moved MVC code and tests into root library and tests dirs, respectively
Browse files Browse the repository at this point in the history
- Updated tests to use ZendTest namespace, and added imports for classes under
  test
  • Loading branch information
weierophinney committed Sep 29, 2011
1 parent e4cb5f4 commit 7bdbc72
Show file tree
Hide file tree
Showing 37 changed files with 13 additions and 13 deletions.
File renamed without changes.
File renamed without changes.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc;
namespace ZendTest\Mvc;

use ArrayObject,
PHPUnit_Framework_TestCase as TestCase,
Expand All @@ -11,6 +11,8 @@
Zend\EventManager\StaticEventManager,
Zend\Http\Request,
Zend\Http\Response,
Zend\Mvc\Application,
Zend\Mvc\Router,
Zend\Uri\UriFactory;

class ApplicationTest extends TestCase
Expand Down Expand Up @@ -395,7 +397,7 @@ public function testDispatchingInjectsLocatorInLocatorAwareControllers()

$storage = new ArrayObject();
$events = StaticEventManager::getInstance();
$events->attach('Zend\Mvc\TestAsset\LocatorAwareController', 'dispatch', function ($e) use ($storage) {
$events->attach('ZendTest\Mvc\TestAsset\LocatorAwareController', 'dispatch', function ($e) use ($storage) {
$controller = $e->getTarget();
$storage['locator'] = $controller->getLocator();
return $e->getResponse();
Expand Down Expand Up @@ -426,8 +428,8 @@ public function testCanProvideAlternateEventManagerToDisableDefaultRouteAndDispa
$response->setContent($content);
};
$events = StaticEventManager::getInstance();
$events->attach('Zend\Mvc\Controller\TestAsset\SampleController', 'dispatch', $listener1, 10);
$events->attach('Zend\Mvc\Controller\TestAsset\SampleController', 'dispatch', $listener2, -10);
$events->attach('ZendTest\Mvc\Controller\TestAsset\SampleController', 'dispatch', $listener1, 10);
$events->attach('ZendTest\Mvc\Controller\TestAsset\SampleController', 'dispatch', $listener2, -10);

$app->run();
$response = $app->getResponse();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\Controller;
namespace ZendTest\Mvc\Controller;

use PHPUnit_Framework_TestCase as TestCase,
Zend\EventManager\StaticEventManager,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\Controller\TestAsset;
namespace ZendTest\Mvc\Controller\TestAsset;

use Zend\Mvc\Controller\ActionController;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\Controller\TestAsset;
namespace ZendTest\Mvc\Controller\TestAsset;

use Zend\Mvc\Controller\RestfulController;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\Controller\TestAsset;
namespace ZendTest\Mvc\Controller\TestAsset;

use Zend\Mvc\Controller\ActionController;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\TestAsset;
namespace ZendTest\Mvc\TestAsset;

use Zend\Di\Locator as LocatorDefinition,
Zend\Di\Exception\ClassNotFoundException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\TestAsset;
namespace ZendTest\Mvc\TestAsset;

use Zend\Di\Locator as DiLocator,
Zend\Mvc\Controller\ActionController,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Zend\Mvc\TestAsset;
namespace ZendTest\Mvc\TestAsset;

use Zend\Stdlib\Dispatchable,
Zend\Stdlib\RequestDescription as Request,
Expand Down

0 comments on commit 7bdbc72

Please sign in to comment.