Skip to content

Commit

Permalink
Codacy thinks these are bad, I'm not the one to disagree
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Mar 9, 2018
1 parent 373c643 commit 4989863
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Pipeline/ErrorsTest.php
Expand Up @@ -28,14 +28,15 @@ public function testInvalidInitialGeneratorWithArguments()
// PHP 7.0 fails with: Missing argument 1 for...
$this->expectExceptionMessage('argument');

$this->expectException(Warning::class);

if (class_exists(\ArgumentCountError::class)) {
$this->expectException(\ArgumentCountError::class);
} else {
$this->expectException(Warning::class);
}

$pipeline = new Simple();
$pipeline->map(function ($a) {
yield $a;
$this->fail('Shall never be called');
});
}
Expand Down

0 comments on commit 4989863

Please sign in to comment.