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

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -