@@ -14,36 +14,9 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
14
14
Assert::nullOrInteger ($ b );
15
15
\PHPStan \Testing \assertType ('int|null ' , $ b );
16
16
17
- Assert::allInteger ($ c );
18
- \PHPStan \Testing \assertType ('array<int> ' , $ c );
19
-
20
- Assert::allInteger ($ d );
21
- \PHPStan \Testing \assertType ('iterable<int> ' , $ d );
22
-
23
- /** @var (Foo|Bar)[] $v */
24
- $ v = doFoo ();
25
- Assert::allNotInstanceOf ($ v , Bar::class);
26
- \PHPStan \Testing \assertType ('array<PHPStan\Type\WebMozartAssert\Foo> ' , $ v );
27
-
28
- /** @var (int|null)[] $w */
29
- $ w = doFoo ();
30
- Assert::allNotNull ($ w );
31
- \PHPStan \Testing \assertType ('array<int> ' , $ w );
32
-
33
- $ z = [1 , 2 , 3 ];
34
- if (doFoo ()) {
35
- $ z = [-1 , -2 , -3 ];
36
- }
37
- Assert::allNotSame ($ z , -1 );
38
- \PHPStan \Testing \assertType ('array{1, -2|2, -3|3} ' , $ z );
39
-
40
17
Assert::subclassOf ($ aa , self ::class);
41
18
\PHPStan \Testing \assertType ('class-string<PHPStan\Type\WebMozartAssert\TypeInferenceTest>|PHPStan\Type\WebMozartAssert\TypeInferenceTest ' , $ aa );
42
19
43
- Assert::allSubclassOf ($ ab , self ::class);
44
- // should array<PHPStan\Type\WebMozartAssert\Foo>
45
- \PHPStan \Testing \assertType ('array<*NEVER*> ' , $ ab );
46
-
47
20
Assert::implementsInterface ($ ae , Baz::class);
48
21
\PHPStan \Testing \assertType ('PHPStan\Type\WebMozartAssert\Baz ' , $ ae );
49
22
@@ -59,13 +32,8 @@ public function doFoo($a, $b, array $c, iterable $d, $e, $f, $g, $h, $i, $j, $k,
59
32
$ ah = false ;
60
33
}
61
34
62
- Assert::allIsInstanceOf ($ ah , \stdClass::class);
63
- \PHPStan \Testing \assertType ('array<stdClass> ' , $ ah );
64
-
65
35
Assert::isList ($ ai );
66
36
\PHPStan \Testing \assertType ('array ' , $ ai );
67
- Assert::allString ($ ai );
68
- \PHPStan \Testing \assertType ('array<string> ' , $ ai );
69
37
70
38
/** @var int[] $aj */
71
39
$ aj = doFoo ();
0 commit comments