File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -621,11 +621,11 @@ public function assertSeeText($value, $escape = true)
621
621
622
622
$ values = $ escape ? array_map ('e ' , ($ value )) : $ value ;
623
623
624
- tap ( strip_tags ($ this ->getContent ()), function ( $ content ) use ( $ values ) {
625
- foreach ( $ values as $ value ) {
626
- PHPUnit:: assertStringContainsString (( string ) $ value , $ content );
627
- }
628
- });
624
+ $ content = strip_tags ($ this ->getContent ());
625
+
626
+ foreach ( $ values as $ value ) {
627
+ PHPUnit:: assertStringContainsString (( string ) $ value , $ content );
628
+ }
629
629
630
630
return $ this ;
631
631
}
@@ -679,11 +679,11 @@ public function assertDontSeeText($value, $escape = true)
679
679
680
680
$ values = $ escape ? array_map ('e ' , ($ value )) : $ value ;
681
681
682
- tap ( strip_tags ($ this ->getContent ()), function ( $ content ) use ( $ values ) {
683
- foreach ( $ values as $ value ) {
684
- PHPUnit:: assertStringNotContainsString (( string ) $ value , $ content );
685
- }
686
- });
682
+ $ content = strip_tags ($ this ->getContent ());
683
+
684
+ foreach ( $ values as $ value ) {
685
+ PHPUnit:: assertStringNotContainsString (( string ) $ value , $ content );
686
+ }
687
687
688
688
return $ this ;
689
689
}
You can’t perform that action at this time.
0 commit comments