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

Commit

Permalink
Remove useless override factories
Browse files Browse the repository at this point in the history
  • Loading branch information
blanchonvincent committed Feb 20, 2013
1 parent f07fafa commit 336611f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 78 deletions.
Expand Up @@ -10,6 +10,7 @@

use PHPUnit_Framework_TestCase;
use PHPUnit_Framework_ExpectationFailedException;
use Zend\Console\Console;
use Zend\EventManager\StaticEventManager;
use Zend\Http\Request as HttpRequest;
use Zend\Mvc\Application;
Expand Down Expand Up @@ -133,16 +134,7 @@ public function getApplication()
return $this->application;
}
$appConfig = $this->applicationConfig;
if (!$this->useConsoleRequest) {
$consoleServiceConfig = array(
'service_manager' => array(
'factories' => array(
'ServiceListener' => 'Zend\Test\PHPUnit\Mvc\Service\ServiceListenerFactory',
),
),
);
$appConfig = array_replace_recursive($appConfig, $consoleServiceConfig);
}
Console::overrideIsConsole($this->getUseConsoleRequest());
$this->application = Application::init($appConfig);

$events = $this->application->getEventManager();
Expand Down
31 changes: 0 additions & 31 deletions library/Zend/Test/PHPUnit/Mvc/Service/RouterFactory.php

This file was deleted.

37 changes: 0 additions & 37 deletions library/Zend/Test/PHPUnit/Mvc/Service/ServiceListenerFactory.php

This file was deleted.

0 comments on commit 336611f

Please sign in to comment.