feat: toHaveAllMethodsDocumented and toHaveAllPropertiesDocumented

This commit is contained in:
Nuno Maduro
2024-07-19 14:03:59 +01:00
parent 99107544ff
commit f2691623cf
18 changed files with 154 additions and 4 deletions

View File

@ -17,6 +17,9 @@ use function expect;
*/
final class EachExpectation
{
/**
* Indicates if the expectation is the opposite.
*/
private bool $opposite = false;
/**

View File

@ -25,8 +25,14 @@ final class HigherOrderExpectation
*/
private Expectation|EachExpectation $expectation;
/**
* Indicates if the expectation is the opposite.
*/
private bool $opposite = false;
/**
* Indicates if the expectation should reset the value.
*/
private bool $shouldReset = false;
/**

View File

@ -96,6 +96,22 @@ final class OppositeExpectation
throw InvalidExpectation::fromMethods(['not', 'toHaveLineCountLessThan']);
}
/**
* Not supported.
*/
public function toHaveAllMethodsDocumented(): ArchExpectation
{
throw InvalidExpectation::fromMethods(['not', 'toHaveAllMethodsDocumented']);
}
/**
* Not supported.
*/
public function toHaveAllPropertiesDocumented(): ArchExpectation
{
throw InvalidExpectation::fromMethods(['not', 'toHaveAllPropertiesDocumented']);
}
/**
* Asserts that the given expectation target does not use the "declare(strict_types=1)" declaration.
*/