Skip to content

Commit

Permalink
DoesNotPerformAssertions should also be supported on the class-level
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Apr 14, 2023
1 parent c1d77db commit 2e4e2df
Showing 1 changed file with 1 addition 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 @@ -617,7 +617,7 @@ final public function runBare(): void
}

if (method_exists(static::class, $this->name) &&
MetadataRegistry::parser()->forMethod(static::class, $this->name)->isDoesNotPerformAssertions()->isNotEmpty()) {
MetadataRegistry::parser()->forClassAndMethod(static::class, $this->name)->isDoesNotPerformAssertions()->isNotEmpty()) {
$this->doesNotPerformAssertions = true;
}

Expand Down

0 comments on commit 2e4e2df

Please sign in to comment.