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