Пример #1
0
 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
 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
 public function indexAction()
 {
     var_dump(\Dao\UserModel::httpTest());
 }