phpunit - CakePHP Unit Testing with edit methods -
i wrote test testedit()
.
public function testedit() { $result = $this->_testaction('/articles/edit/1', array('return' => 'vars', 'method' => 'get')); debug($result); }
why debug($result)
show null array?
use var_dump
instead of debug
public function testedit() { $result = $this->testaction('/articles/edit/1', array('return' => 'vars', 'method' => 'get')); var_dump($result); }
Comments
Post a Comment