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); }
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!'); }
public function indexAction() { var_dump(\Dao\UserModel::httpTest()); }