public function seeFormErrorMessage($key, $errorMessage)
    {
        $viewErrorBag = $this->app['view']->shared('errors');

        $this->assertEquals($errorMessage, $viewErrorBag->first($key));
    }
public function seeFormErrorMessage($key, $errorMessage)
    {
        $viewErrorBag = $this->app['view']->shared('errors');

        $this->assertEquals($errorMessage, $viewErrorBag->first($key));
    }
public function seeFormErrorMessage ( $ key , $ errorMessage ) { $ viewErrorBag = $ this -> app [ 'view' ] -> shared ( 'errors' ) ; $ this -> assertEquals ( $ errorMessage , $ viewErrorBag -> first ( $ key ) ) ; }
Assert that specific form error message is set in the view.

Useful for validation messages and generally messages array
e.g.
return `Redirect::to('register')->withErrors($validator);`

Example of Usage

``` php
<?php
$I->seeFormErrorMessage('username', 'Invalid Username');
?>
```
@param string $key
@param string $errorMessage
Assert that specific form error message is set in the view .