release: v3.2.0

This commit is contained in:
Nuno Maduro
2024-09-23 13:14:03 +01:00
parent f291cd1603
commit a55da85dd2
13 changed files with 99 additions and 9 deletions

View File

@ -152,6 +152,19 @@ final readonly class OppositeExpectation
);
}
/**
* Asserts that the given expectation target does not use the strict equality operator.
*/
public function toUseStrictEquality(): ArchExpectation
{
return Targeted::make(
$this->original,
fn (ObjectDescription $object): bool => ! str_contains((string) file_get_contents($object->path), ' === '),
'to use strict equality',
FileLineFinder::where(fn (string $line): bool => str_contains($line, ' === ')),
);
}
/**
* Asserts that the given expectation target is not final.
*/