Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Oct 23, 2023
1 parent 3a9b5ee commit b9230d2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Concerns/InteractsWithPHPUnit.php
Expand Up @@ -69,12 +69,8 @@ protected function resolvePhpUnitAttributes(): Collection
return new Collection();
}

$methodName = phpunit_version_compare('10', '>=')
? $this->name() /** @phpstan-ignore-line */
: $this->getName(false); /** @phpstan-ignore-line */

return Collection::make(
AttributeParser::forMethod($instance->getName(), $methodName)
AttributeParser::forMethod($instance->getName(), $this->name())
);
}

Expand Down

0 comments on commit b9230d2

Please sign in to comment.