@@ -31,15 +31,15 @@ public function testConstraintIsNotList(): void
31
31
$ constraint = new IsList ;
32
32
33
33
$ this ->assertFalse ($ constraint ->evaluate ([1 => 1 ], '' , true ));
34
- $ this ->assertEquals ('is list ' , $ constraint ->toString ());
34
+ $ this ->assertEquals ('is a list ' , $ constraint ->toString ());
35
35
$ this ->assertCount (1 , $ constraint );
36
36
37
37
try {
38
38
$ constraint ->evaluate ([1 => 1 ]);
39
39
} catch (ExpectationFailedException $ e ) {
40
40
$ this ->assertEquals (
41
41
<<<'EOF'
42
- Failed asserting that an array is list.
42
+ Failed asserting that an array is a list.
43
43
44
44
EOF
45
45
,
@@ -57,15 +57,15 @@ public function testConstraintIsNotListWithFilteredArray(): void
57
57
$ constraint = new IsList ;
58
58
59
59
$ this ->assertFalse ($ constraint ->evaluate ([0 => 0 , 1 => 1 , 3 => 3 ], '' , true ));
60
- $ this ->assertEquals ('is list ' , $ constraint ->toString ());
60
+ $ this ->assertEquals ('is a list ' , $ constraint ->toString ());
61
61
$ this ->assertCount (1 , $ constraint );
62
62
63
63
try {
64
64
$ constraint ->evaluate ([1 => 1 ]);
65
65
} catch (ExpectationFailedException $ e ) {
66
66
$ this ->assertEquals (
67
67
<<<'EOF'
68
- Failed asserting that an array is list.
68
+ Failed asserting that an array is a list.
69
69
70
70
EOF
71
71
,
@@ -88,7 +88,7 @@ public function testConstraintIsNotListWithCustomMessage(): void
88
88
$ this ->assertEquals (
89
89
<<<'EOF'
90
90
custom message
91
- Failed asserting that an array is list.
91
+ Failed asserting that an array is a list.
92
92
93
93
EOF
94
94
,
@@ -110,7 +110,7 @@ public function testConstraintIsNotListWhenNotArray(): void
110
110
} catch (ExpectationFailedException $ e ) {
111
111
$ this ->assertEquals (
112
112
<<<'EOF'
113
- Failed asserting that an array is list.
113
+ Failed asserting that a string is a list.
114
114
115
115
EOF
116
116
,
@@ -131,7 +131,7 @@ public function testConstraintArrayIsNotList(): void
131
131
$ this ->assertEquals (
132
132
<<<'EOF'
133
133
custom message
134
- Failed asserting that an array is not list.
134
+ Failed asserting that an array is not a list.
135
135
136
136
EOF
137
137
,
0 commit comments