public function setUp() { MockConf::setConstants(); $reflection = new \ReflectionClass('App\\Load'); $this->_load = $reflection->newInstanceWithoutConstructor(); MockTest::inject($this->_load, 'confYaml', MockTest::mockFile('conf.yml')); MockTest::inject($this->_load, 'viewHelperYaml', MockTest::mockFile('view-helper.yml')); MockTest::inject($this->_load, 'adminViewHelperYaml', MockTest::mockFile('admin-view-helper.yml')); $this->_load->__construct(); }
public function setUp() { MockConf::setConstants(); $this->_adminExtension = new AdminExtension(''); }
public function setUp() { MockConf::setConstants(); $this->app = (new \ReflectionClass('App\\App'))->newInstanceWithoutConstructor(); }
public static function setUpBeforeClass() { MockConf::setConstants(); }