Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for null and false as stand-alone types
- Loading branch information
1 parent
207c74e
commit afad3e9
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
tests/_fixture/ClassWithMethodThatDeclaresFalseReturnType.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of sebastian/type. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace SebastianBergmann\Type\TestFixture; | ||
|
||
final class ClassWithMethodThatDeclaresFalseReturnType | ||
{ | ||
public function falseReturnType(): false | ||
{ | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
tests/_fixture/ClassWithMethodThatDeclaresNullReturnType.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php declare(strict_types=1); | ||
/* | ||
* This file is part of sebastian/type. | ||
* | ||
* (c) Sebastian Bergmann <sebastian@phpunit.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
namespace SebastianBergmann\Type\TestFixture; | ||
|
||
final class ClassWithMethodThatDeclaresNullReturnType | ||
{ | ||
public function nullReturnType(): null | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters