initial commit

This commit is contained in:
JonPurvis
2023-09-18 01:00:50 +01:00
parent c08f33638a
commit 6c73a3d90b
8 changed files with 96 additions and 0 deletions

View File

@ -469,4 +469,20 @@ final class OppositeExpectation
implode(' ', array_map(fn (mixed $argument): string => $toString($argument), $arguments)),
));
}
/**
* Asserts that the given expectation target does not have a constructor method.
*/
public function toHaveConstructor(): ArchExpectation
{
return $this->toHaveMethod('__construct');
}
/**
* Asserts that the given expectation target does not have a destructor method.
*/
public function toHaveDestructor(): ArchExpectation
{
return $this->toHaveMethod('__destruct');
}
}