File tree Expand file tree Collapse file tree
src/Illuminate/Foundation/Testing/Constraints Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77class SeeInOrder extends Constraint
88{
99 /**
10- * The value that failed. Used to display in the error message .
10+ * The string under validation .
1111 *
1212 * @var string
1313 */
14- protected $ failedValue ;
14+ protected $ content ;
1515
1616 /**
17- * The string we want to check the content of .
17+ * The last value that failed to pass validation .
1818 *
1919 * @var string
2020 */
21- protected $ content ;
21+ protected $ failedValue ;
2222
2323 /**
2424 * Create a new constraint instance.
2525 *
26- * @param string $content
26+ * @param string $content
2727 * @return void
2828 */
29- public function __construct (string $ content )
29+ public function __construct ($ content )
3030 {
3131 $ this ->content = $ content ;
3232 }
3333
3434 /**
35- * Check if the data is found in the given table .
35+ * Determine if the rule passes validation .
3636 *
3737 * @param array $values
3838 * @return bool
@@ -78,8 +78,6 @@ public function failureDescription($values) : string
7878 */
7979 public function toString () : string
8080 {
81- $ class = new ReflectionClass ($ this );
82-
83- return $ class ->name ;
81+ return (new ReflectionClass ($ this ))->name ;
8482 }
8583}
You can’t perform that action at this time.
0 commit comments