コード例 #1
0
ファイル: ResponseTest.php プロジェクト: borisding/avenue
 public function testHasCache()
 {
     Reflection::setPropertyValue($this->response, 'boolCache', true);
     $this->assertTrue($this->response->hasCache());
 }
コード例 #2
0
ファイル: CommandTest.php プロジェクト: borisding/avenue
 /**
  * @expectedException InvalidArgumentException
  */
 public function testGetConnectionInstanceInvalidArgumentException()
 {
     Reflection::setPropertyValue($this->db, 'connection', null);
     $this->assertTrue($this->db->getConnectionInstance() instanceof Connection);
 }
コード例 #3
0
ファイル: RequestTest.php プロジェクト: borisding/avenue
 public function testGetAction()
 {
     Reflection::setPropertyValue($this->app->route(), 'params', ['action' => 'index']);
     $this->assertEquals('index', $this->request->getAction());
 }