Skip to content

Commit 43cedaf

Browse files
authored
Test support for IsSuperTypeOfResult (#4)
1 parent d861655 commit 43cedaf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

tests/Infection/TrinaryLogicMutatorTest.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@ public static function mutationsProvider(): iterable
6262
$trinary = \PHPStan\TrinaryLogic::createYes();
6363
$trinary->maybe();
6464
PHP
65+
,
66+
];
67+
68+
yield 'It mutates IsSuperTypeOfResult yes' => [
69+
<<<'PHP'
70+
<?php
71+
$trinary = \PHPStan\Type\IsSuperTypeOfResult::createYes();
72+
$trinary->yes();
73+
PHP
74+
,
75+
<<<'PHP'
76+
<?php
77+
78+
$trinary = \PHPStan\Type\IsSuperTypeOfResult::createYes();
79+
!$trinary->no();
80+
PHP
6581
,
6682
];
6783
}

0 commit comments

Comments
 (0)