コード例 #1
0
 public function testConstruct()
 {
     $app = $this->getMockBuilder('Hyperframework\\Web\\App')->disableOriginalConstructor()->getMock();
     Config::remove('hyperframework.app_root_path');
     $app->__construct(dirname(__DIR__));
     $this->assertNotNull(Config::get('hyperframework.app_root_path'));
 }
コード例 #2
0
 public function testRemove()
 {
     $this->mockEngineMethod('remove')->with('name');
     Config::remove('name');
 }