@@ -5,39 +5,39 @@ require 'vendor/autoload.php';
55
66$ empty = [];
77$ nonIterable = null ;
8- $ negative = [1 , 2 , 3 ];
8+ $ inverted = [1 , 2 , 3 ];
99$ default = ['a ' , 'b ' , 'c ' ];
1010
1111run ([
1212 // Simple
1313 'Non-iterable ' => [v::each (v::intType ()), $ nonIterable ],
1414 'Empty ' => [v::each (v::intType ()), $ empty ],
1515 'Default ' => [v::each (v::intType ()), $ default ],
16- 'Negative ' => [v::not (v::each (v::intType ())), $ negative ],
16+ 'Inverted ' => [v::not (v::each (v::intType ())), $ inverted ],
1717
1818 // With name
1919 'With name, non-iterable ' => [v::each (v::intType ()->setName ('Wrapped ' ))->setName ('Wrapper ' ), $ nonIterable ],
2020 'With name, empty ' => [v::each (v::intType ()->setName ('Wrapped ' ))->setName ('Wrapper ' ), $ empty ],
2121 'With name, default ' => [v::each (v::intType ()->setName ('Wrapped ' ))->setName ('Wrapper ' ), $ default ],
22- 'With name, negative ' => [
22+ 'With name, inverted ' => [
2323 v::not (v::each (v::intType ()->setName ('Wrapped ' ))->setName ('Wrapper ' ))->setName ('Not ' ),
24- $ negative ,
24+ $ inverted ,
2525 ],
2626 'With wrapper name, default ' => [v::each (v::intType ())->setName ('Wrapper ' ), $ default ],
27- 'With wrapper name, negative ' => [
27+ 'With wrapper name, inverted ' => [
2828 v::not (v::each (v::intType ())->setName ('Wrapper ' ))->setName ('Not ' ),
29- $ negative ,
29+ $ inverted ,
3030 ],
31- 'With Not name, negative ' => [
31+ 'With Not name, inverted ' => [
3232 v::not (v::each (v::intType ()))->setName ('Not ' ),
33- $ negative ,
33+ $ inverted ,
3434 ],
3535
3636 // With template
3737 'With template, non-iterable ' => [v::each (v::intType ()), $ nonIterable , 'You should have passed an iterable ' ],
3838 'With template, empty ' => [v::each (v::intType ()), $ empty , 'You should have passed an non-empty ' ],
3939 'With template, default ' => [v::each (v::intType ()), $ default , 'All items should have been integers ' ],
40- 'with template, negative ' => [v::not (v::each (v::intType ())), $ negative , 'All items should not have been integers ' ],
40+ 'with template, inverted ' => [v::not (v::each (v::intType ())), $ inverted , 'All items should not have been integers ' ],
4141
4242 // With array template
4343 'With array template, default ' => [
@@ -95,7 +95,7 @@ Default
9595 'intType.3' => '"c" must be of type integer',
9696]
9797
98- Negative
98+ Inverted
9999⎺⎺⎺⎺⎺⎺⎺⎺
1001001 must not be of type integer
101101- Each item in `[1, 2, 3]` must not validate
@@ -139,7 +139,7 @@ Wrapped must be of type integer
139139 'intType.3' => 'Wrapped must be of type integer',
140140]
141141
142- With name, negative
142+ With name, inverted
143143⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
144144Wrapped must not be of type integer
145145- Each item in Wrapped must not validate
@@ -167,7 +167,7 @@ Wrapper must be of type integer
167167 'intType.3' => 'Wrapper must be of type integer',
168168]
169169
170- With wrapper name, negative
170+ With wrapper name, inverted
171171⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
172172Wrapper must not be of type integer
173173- Each item in Wrapper must not validate
@@ -181,7 +181,7 @@ Wrapper must not be of type integer
181181 'intType.3' => 'Wrapper must not be of type integer',
182182]
183183
184- With Not name, negative
184+ With Not name, inverted
185185⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
186186Not must not be of type integer
187187- Each item in Not must not validate
@@ -219,7 +219,7 @@ All items should have been integers
219219 'each' => 'All items should have been integers',
220220]
221221
222- with template, negative
222+ with template, inverted
223223⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺
224224All items should not have been integers
225225- All items should not have been integers
0 commit comments