Skip to content

Commit

Permalink
CS/WS
Browse files Browse the repository at this point in the history
  • Loading branch information
epdenouden authored and sebastianbergmann committed Feb 8, 2019
1 parent 84f7f0d commit 4eaa0ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ private function handleDependencies(): bool
}

if (!isset($passedKeys[$dependency])) {
if (!is_callable($dependency, false, $callableName) || $dependency !== $callableName) {
if (!\is_callable($dependency, false, $callableName) || $dependency !== $callableName) {
$this->markWarningForUncallableDependency($dependency);
} else {
$this->markSkippedForMissingDependecy($dependency);
Expand Down
1 change: 1 addition & 0 deletions tests/_files/DependencyFailureTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function testFour(): void
* when a dependency simply doesn't exist.
*
* @depends doesNotExist
*
* @see https://github.com/sebastianbergmann/phpunit/issues/3517
*/
public function testHandlesDependsAnnotationForNonexistentTests(): void
Expand Down

0 comments on commit 4eaa0ff

Please sign in to comment.