php - How can I assert the content of Flash messages in phpunit tests? -


any idea on how can test cakephp controller flash message content in phpunit testing? need test this:

if ($var == "yes") {    //do } else {             $this->flash->error(__('invalid username or password, try again;)); } 


Comments

Popular posts from this blog

javascript - generate date range base on integers -

PHP and MySQL WP -