/** * @dataProvider providerEmptyData */ public function testShouldReturnEmptyWhenShowErrorMessageByValidParams($msg, $key, $wrap) { //GIVEN $errors = new MessageBag(); $errors->add('name', $msg); \Session::put('errors', $errors); //WHEN $results = $this->tester->showErrorsMessage($errors, $key, $wrap); //THEN $this->assertEmpty($results); }