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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -