feat: adds not->toHavePrivateMethods and related

This commit is contained in:
Nuno Maduro
2024-09-04 11:18:41 +01:00
parent a021b5b8c3
commit e6823679dd
7 changed files with 53 additions and 5 deletions

View File

@ -610,6 +610,14 @@ final class Expectation
throw InvalidExpectation::fromMethods(['toHavePublicMethodsBesides']);
}
/**
* Not supported.
*/
public function toHavePublicMethods(): void
{
throw InvalidExpectation::fromMethods(['toHavePublicMethods']);
}
/**
* Not supported.
*/
@ -618,6 +626,14 @@ final class Expectation
throw InvalidExpectation::fromMethods(['toHaveProtectedMethodsBesides']);
}
/**
* Not supported.
*/
public function toHaveProtectedMethods(): void
{
throw InvalidExpectation::fromMethods(['toHaveProtectedMethods']);
}
/**
* Not supported.
*/
@ -626,6 +642,14 @@ final class Expectation
throw InvalidExpectation::fromMethods(['toHavePrivateMethodsBesides']);
}
/**
* Not supported.
*/
public function toHavePrivateMethods(): void
{
throw InvalidExpectation::fromMethods(['toHavePrivateMethods']);
}
/**
* Asserts that the given expectation target is enum.
*/