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 fce75f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Pipeline/ErrorsTest.php
Expand Up @@ -31,11 +31,13 @@ public function testInvalidInitialGeneratorWithArguments()
if (class_exists(\ArgumentCountError::class)) {
$this->expectException(\ArgumentCountError::class);
} else {
// fallback for PHP 7.0
$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 fce75f0

Please sign in to comment.