コード例 #1
0
ファイル: UserTest.php プロジェクト: vzina/yaf-api
 public function testGetUserName()
 {
     $userId = 1;
     $result = \Dao\UserModel::test($userId);
     $this->assertArrayHasKey('group_id', $result);
     $userId = 100;
     $result = \Dao\UserModel::test($userId);
     $this->assertFalse($result);
 }
コード例 #2
0
ファイル: Index.php プロジェクト: vzina/yaf-api
 public function indexAction()
 {
     var_dump(\Dao\UserModel::test(1), \Dao\UserModel::httpTest());
     $this->_yac->aaa = 'test';
     //
     var_dump($this->_yac->aaa);
     //        $this->_view->heading = 'Home Page!';
     //        $this->_view->display('index/index.phtml');
     $this->_response->setBody('Home Page!');
 }
コード例 #3
0
ファイル: Http.php プロジェクト: vzina/yaf-api
 public function indexAction()
 {
     var_dump(\Dao\UserModel::httpTest());
 }