public function setUp() { $this->setApplicationConfig( include __DIR__ . '/../../_files/application.config.php' ); parent::setUp(); }
public function setUp() { $this->setApplicationConfig(Bootstrap::getConfig()); parent::setUp(); //Disabling output in console !$this->verbose && ob_start(); }
public function setUp() { $this->setApplicationConfig(include __DIR__ . '/../../config/application.config.php'); parent::setUp(); $this->tempFile = tempnam(sys_get_temp_dir(), 'phpunit'); $targetService = new TargetInvokable(); $targetService->setConfigFile($this->tempFile); $testData = array('delme' => array('zsurl' => 'http://del.me', 'zssecret' => 'Secret', 'zskey' => 'Name', 'zsversion' => '1.1'), 'listme' => array('zsurl' => 'http://list.me', 'zssecret' => 'Secret', 'zskey' => 'Name', 'zsversion' => '1.1'), 'updateme' => array('zsurl' => 'http://update.me', 'zssecret' => 'Secret', 'zskey' => 'Name', 'zsversion' => '1.1', 'http' => array('sslverify' => '1', 'timeout' => '20'))); $targetService->save($testData); $this->targetService = $targetService; $serviceManager = $this->getApplication()->getServiceManager(); $targetController = $serviceManager->get('controllerloader')->get('webapi-target-controller'); $targetController->setTargetService($targetService); }
public function setUp() { $this->setApplicationConfig(include __DIR__ . '/application.config.php'); parent::setUp(); $serviceManager = $this->getApplication()->getServiceManager(); $objectManager = $serviceManager->get('doctrine.entitymanager.orm_default'); $tool = new SchemaTool($objectManager); $res = $tool->createSchema($objectManager->getMetadataFactory()->getAllMetadata()); $artist1 = new Entity\Artist(); $artist1->setName('ABBA'); $artist1->setCreatedAt(new DateTime('2011-12-18 13:17:17')); $objectManager->persist($artist1); $objectManager->flush(); }
public function setUp() { $this->setApplicationConfig(include __DIR__ . '/../../config/application.config.php'); parent::setUp(); // Fake the config and the routing $serviceManager = $this->getApplication()->getServiceManager(); $data = array('name' => 'testArgs', 'options' => array('route' => "testArgs [--singleParam=] [--arrayParam=] ", 'defaults' => array('controller' => 'test', 'action' => 'Args'), 'arrays' => array('arrayParam'))); $config = $serviceManager->get('config'); $config['console']['router']['routes'][$data['name']] = $data; $serviceManager->setAllowOverride(true); $serviceManager->setService('config', $config); $serviceManager->setAllowOverride(false); $testRoute = SimpleRouter::factory($data['options']); $router = $serviceManager->get('router'); $router->addRoute($data['name'], $testRoute, 99999); $eventManager = $this->getApplication()->getEventManager(); $eventManager->attach(MvcEvent::EVENT_ROUTE, array($this, 'postRoute'), -3); }
public function setUp() { parent::setUp(); $this->setTraceError(true); $this->setApplicationConfig(\Library\Application::getService('ApplicationConfig')); }
/** * {@inheritDoc} */ public function setUp() { $this->setApplicationConfig(include __DIR__ . '/../../TestConfiguration.php.dist'); parent::setUp(); }
public function setUp() { $this->setApplicationConfig(Bootstrap::getApplicationConfig()); $this->content = ''; parent::setUp(); }
public function setUp() { parent::setUp(); $this->setTraceError(true); $this->setApplicationConfig(\Library\Application::getApplicationConfig('Export', true)); }
public function setUp() { parent::setUp(); $this->setTraceError(true); $this->setApplicationConfig(\Library\Application::getApplicationConfig('DatabaseManager', true)); }
public function setUp() { parent::setUp(); $this->setTraceError(true); $this->setApplicationConfig(\Library\Application::getApplicationConfig('DecodeInventory', true)); }
public function setUp() { parent::setUp(); $this->setTraceError(true); $this->setApplicationConfig(\Library\Application::getApplicationConfig('PackageBuilder', true)); }
/** * {@inheritDoc} */ public function setUp() { $this->setApplicationConfig(include __DIR__ . '/../../TestConfiguration.php.dist'); parent::setUp(); $this->getApplicationServiceLocator()->get('doctrine.cli')->add(new FailingCommand()); }