@@ -195,7 +195,10 @@ public function testCanValidateValidData()
195195
196196 $ this ->filter ->setInputFilter ($ this ->getBaseInputFilter ());
197197 $ this ->filter ->setData ($ this ->getValidCollectionData ());
198- $ this ->assertTrue ($ this ->filter ->isValid ());
198+ $ this ->assertTrue (
199+ $ this ->filter ->isValid (),
200+ 'isValid() value not match. Detail . ' . json_encode ($ this ->filter ->getMessages ())
201+ );
199202 }
200203
201204 public function testCanValidateValidDataWithNonConsecutiveKeys ()
@@ -209,7 +212,10 @@ public function testCanValidateValidDataWithNonConsecutiveKeys()
209212 unset($ collectionData [0 ]);
210213 $ this ->filter ->setInputFilter ($ this ->getBaseInputFilter ());
211214 $ this ->filter ->setData ($ collectionData );
212- $ this ->assertTrue ($ this ->filter ->isValid ());
215+ $ this ->assertTrue (
216+ $ this ->filter ->isValid (),
217+ 'isValid() value not match. Detail . ' . json_encode ($ this ->filter ->getMessages ())
218+ );
213219 }
214220
215221 public function testInvalidDataReturnsFalse ()
@@ -293,7 +299,10 @@ public function testGetValues()
293299 $ this ->filter ->setInputFilter ($ this ->getBaseInputFilter ());
294300 $ this ->filter ->setData ($ this ->getValidCollectionData ());
295301
296- $ this ->assertTrue ($ this ->filter ->isValid ());
302+ $ this ->assertTrue (
303+ $ this ->filter ->isValid (),
304+ 'isValid() value not match. Detail . ' . json_encode ($ this ->filter ->getMessages ())
305+ );
297306 $ this ->assertEquals ($ expectedData , $ this ->filter ->getValues ());
298307
299308 $ this ->assertCount (2 , $ this ->filter ->getValidInput ());
@@ -334,7 +343,10 @@ public function testGetRawValues()
334343 $ this ->filter ->setInputFilter ($ this ->getBaseInputFilter ());
335344 $ this ->filter ->setData ($ this ->getValidCollectionData ());
336345
337- $ this ->assertTrue ($ this ->filter ->isValid ());
346+ $ this ->assertTrue (
347+ $ this ->filter ->isValid (),
348+ 'isValid() value not match. Detail . ' . json_encode ($ this ->filter ->getMessages ())
349+ );
338350 $ this ->assertEquals ($ expectedData , $ this ->filter ->getRawValues ());
339351 }
340352
@@ -440,7 +452,10 @@ public function testSetValidationGroupUsingFormStyle()
440452 $ this ->filter ->setData ($ data );
441453 $ this ->filter ->setValidationGroup ($ formValidationGroup );
442454
443- $ this ->assertTrue ($ this ->filter ->isValid ());
455+ $ this ->assertTrue (
456+ $ this ->filter ->isValid (),
457+ 'isValid() value not match. Detail . ' . json_encode ($ this ->filter ->getMessages ())
458+ );
444459 }
445460
446461 public function testEmptyCollectionIsValidByDefault ()
@@ -454,7 +469,10 @@ public function testEmptyCollectionIsValidByDefault()
454469 $ this ->filter ->setInputFilter ($ this ->getBaseInputFilter ());
455470 $ this ->filter ->setData ($ data );
456471
457- $ this ->assertTrue ($ this ->filter ->isValid ());
472+ $ this ->assertTrue (
473+ $ this ->filter ->isValid (),
474+ 'isValid() value not match. Detail . ' . json_encode ($ this ->filter ->getMessages ())
475+ );
458476 }
459477
460478 public function testEmptyCollectionIsNotValidIfRequired ()
0 commit comments