mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
feat: adds not->toHavePrivateMethods and related
This commit is contained in:
@ -277,6 +277,14 @@ final readonly class OppositeExpectation
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the given expectation target not to have the public methods.
|
||||
*/
|
||||
public function toHavePublicMethods(): ArchExpectation
|
||||
{
|
||||
return $this->toHavePublicMethodsBesides([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the given expectation target not to have the protected methods besides the given methods.
|
||||
*
|
||||
@ -312,6 +320,14 @@ final readonly class OppositeExpectation
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the given expectation target not to have the protected methods.
|
||||
*/
|
||||
public function toHaveProtectedMethods(): ArchExpectation
|
||||
{
|
||||
return $this->toHaveProtectedMethodsBesides([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the given expectation target not to have the private methods besides the given methods.
|
||||
*
|
||||
@ -347,6 +363,14 @@ final readonly class OppositeExpectation
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the given expectation target not to have the private methods.
|
||||
*/
|
||||
public function toHavePrivateMethods(): ArchExpectation
|
||||
{
|
||||
return $this->toHavePrivateMethodsBesides([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Asserts that the given expectation target is not enum.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user