public function setUp()
 {
     parent::setUp();
     $factory = new RestfulControllerFactory('restfulControllerTest');
     $this->controller = $factory->createService($this->serviceManager);
     $this->documentManager = $this->serviceManager->get('doctrine.documentmanager.odm_default');
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
 }
예제 #3
0
<?php

$applicationRoot = __DIR__ . '/../../../../';
chdir($applicationRoot);
$loader = (require_once 'vendor/autoload.php');
$loader->add('Sds\\DojoModule\\Test', __DIR__);
$loader->add('Sds\\ModuleUnitTester', __DIR__ . '/../../../superdweebie/module-unit-tester/lib');
$config = (include __DIR__ . '/test.application.config.php');
\Sds\ModuleUnitTester\AbstractTest::setApplicationConfig($config);