8000 minor #24106 [DependencyInjection] Don't use return on Assert::markTe… · symfony/symfony@a4a87ac · GitHub
[go: up one dir, main page]

Skip to content

Commit a4a87ac

Browse files
committed
minor #24106 [DependencyInjection] Don't use return on Assert::markTestSkipped (derrabus)
This PR was merged into the 3.3 branch. Discussion ---------- [DependencyInjection] Don't use return on Assert::markTestSkipped | Q | A | ------------- | --- | Branch? | 3.3 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | none | License | MIT | Doc PR | N/A Removed an unnecessary return statement. `Assert::markTestSkipped()` will alwa 8000 ys throw an exception, so there's no need for a return statement here. And even if that method had a return value: A unit test is not supposed to return anything. Commits ------- 9cadeb8 Don't use return on Assert::markTestSkipped.
2 parents a964f37 + 9cadeb8 commit a4a87ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Tests/Loader/IniFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function testTypeConversions($key, $value, $supported)
5151
public function testTypeConversionsWithNativePhp($key, $value, $supported)
5252
{
5353
if (defined('HHVM_VERSION_ID')) {
54-
return $this->markTestSkipped();
54+
$this->markTestSkipped();
5555
}
5656

5757
if (!$supported) {

0 commit comments

Comments
 (0)
0