Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat committed Aug 18, 2021
1 parent 85d34f1 commit 67df150
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/SearcherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ public function it_can_handle_nullable_parameters()
{
$results = $this->getSearcher()
->functions(['testFive'])
->static(['one'])
->search(tests_path('data/file5.php'));

$this->assertMatchesSnapshot($results->results);
Expand Down
12 changes: 12 additions & 0 deletions tests/data/file5.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,15 @@ function testFive(?string $one)
{
return 'one';
}

class MyClassFive
{
public static function one(?int $value): ?int
{
return 1;
}
}

MyClassFive::one(null);


0 comments on commit 67df150

Please sign in to comment.