public function setUp() { $this->serviceManager = ServiceManagerFactory::getServiceManager(); /* @var $application \Zend\Mvc\Application */ $application = $this->serviceManager->get('Application'); $application->bootstrap(); }
<?php /* * This file is part of the Omnipay Module for Zend Framework 2. * * (c) Claude Khedhiri <*****@*****.**> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ use OmnipayModuleTest\ServiceManagerFactory; if (file_exists(__DIR__ . '/TestConfiguration.php')) { $config = (require __DIR__ . '/TestConfiguration.php'); } else { $config = (require __DIR__ . '/TestConfiguration.php.dist'); } ServiceManagerFactory::setConfig($config);