mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
feat: toHaveAllMethodsDocumented and toHaveAllPropertiesDocumented
This commit is contained in:
@ -17,6 +17,9 @@ use function expect;
|
||||
*/
|
||||
final class EachExpectation
|
||||
{
|
||||
/**
|
||||
* Indicates if the expectation is the opposite.
|
||||
*/
|
||||
private bool $opposite = false;
|
||||
|
||||
/**
|
||||
|
||||
@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user