Skip to content

Commit

Permalink
checks that also testReturn1 and testReturn2 functions are marked as …
Browse files Browse the repository at this point in the history
…php 7.1 min (see GH-273)
  • Loading branch information
llaville committed Aug 6, 2020
1 parent bf55fd9 commit 7ebba69
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/Sniffs/ReturnTypeDeclarationSniffTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function testNullableReturnTypeHint()
$analysers = ['compatibility'];
$metrics = self::$api->run($dataSource, $analysers);
$versions = $metrics[self::$analyserId]['versions'];
$functions = $metrics[self::$analyserId]['functions'];

$this->assertEquals(
[
Expand All @@ -80,5 +81,15 @@ public function testNullableReturnTypeHint()
],
$versions
);

$this->assertEquals(
'7.1.0',
$functions['testReturn1']['php.min']
);

$this->assertEquals(
'7.1.0',
$functions['testReturn2']['php.min']
);
}
}

0 comments on commit 7ebba69

Please sign in to comment.