Beispiel #1
0
 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();
 }
Beispiel #2
0
 public function setUp()
 {
     MockConf::setConstants();
     $this->_adminExtension = new AdminExtension('');
 }
Beispiel #3
0
 public function setUp()
 {
     MockConf::setConstants();
     $this->app = (new \ReflectionClass('App\\App'))->newInstanceWithoutConstructor();
 }
Beispiel #4
0
 public static function setUpBeforeClass()
 {
     MockConf::setConstants();
 }