Skip to content

Commit c5c9889

Browse files
committed
Add extra check for BC
1 parent 068f4b3 commit c5c9889

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/unit/PseudoTypes/FalseTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ public function testCanBeInstantiatedUsingDeprecatedFqsen() : void
4949
$false = new \phpDocumentor\Reflection\Types\False_();
5050

5151
$this->assertSame('false', (string) $false);
52+
$this->assertInstanceOf(False_::class, $false);
53+
$this->assertInstanceOf(\phpDocumentor\Reflection\Types\False_::class, $false);
5254
}
5355
}

tests/unit/PseudoTypes/TrueTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,7 @@ public function testCanBeInstantiatedUsingDeprecatedFqsen() : void
4949
$true = new \phpDocumentor\Reflection\Types\True_();
5050

5151
$this->assertSame('true', (string) $true);
52+
$this->assertInstanceOf(True_::class, $true);
53+
$this->assertInstanceOf(\phpDocumentor\Reflection\Types\True_::class, $true);
5254
}
5355
}

0 commit comments

Comments
 (0)