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

Popular posts from this blog

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -