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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

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

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -