chore: adjusts tests

This commit is contained in:
Nuno Maduro
2024-06-27 01:41:34 +01:00
parent 5c3bf469d5
commit 474b9b7e17
10 changed files with 41 additions and 14 deletions

View File

@ -254,8 +254,6 @@ final class OppositeExpectation
/**
* Asserts that the given expectation target not to use the given trait.
*
* @param string $trait
*/
public function toUseTrait(string $trait): ArchExpectation
{
@ -282,8 +280,8 @@ final class OppositeExpectation
return true;
},
"not to use traits '" . implode("', '", $traits) . "'",
FileLineFinder::where(fn(string $line): bool => str_contains($line, 'class')),
"not to use traits '".implode("', '", $traits)."'",
FileLineFinder::where(fn (string $line): bool => str_contains($line, 'class')),
);
}