chore: style changes

This commit is contained in:
Nuno Maduro
2023-09-06 12:19:27 +01:00
parent e4ec2b3efa
commit d1aeabc9da
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ final class TestCaseFactory
$namespace = implode('\\', $partsFQN);
$baseClass = sprintf('\%s', $this->class);
if ('' === trim($className)) {
if (trim($className) === '') {
$className = 'InvalidTestName'.Str::random();
}

View File

@ -927,7 +927,7 @@ final class Expectation
$callback = $exception;
$parameters = (new ReflectionFunction($exception))->getParameters();
if (1 !== count($parameters)) {
if (count($parameters) !== 1) {
throw new InvalidArgumentException('The given closure must have a single parameter type-hinted as the class string.');
}