Introduces a new TicketValidationInterface concrete implementation, utilizing the ecphp/ecaslibrary. This implementation does not return false but instead throws exceptions when issues arise, requiring users to handle exceptions appropriately. To ensure that developers catch exceptions as needed, we must verify that the calling code is equipped to handle them properly.
Test: The updated tests focus on evaluating the public interface, while private methods are indirectly tested through the expanded PHPUnit data provider list that accommodates various use cases. This approach enables thorough coverage of the codebase while maintaining appropriate encapsulation of private methods.
This PR:
TicketValidationInterface
concrete implementation, utilizing theecphp/ecas
library. This implementation does not returnfalse
but instead throws exceptions when issues arise, requiring users to handle exceptions appropriately. To ensure that developers catch exceptions as needed, we must verify that the calling code is equipped to handle them properly.data provider
list that accommodates various use cases. This approach enables thorough coverage of the codebase while maintaining appropriate encapsulation of private methods.