Sheerwater\HMACRestfulAuthenticator\Tests\HMACRestfulAuthenticatorTest
Synopsis
class HMACRestfulAuthenticatorTest
extends SapphireTest
{
- // members
- protected array $extraDataObjects = ;
- protected static string $fixture_file = 'HMACRestfulAuthenticatorFixture.yml';
- private $oldApiName;
- // methods
- public void setUpOnce()
- public void tearDownOnce()
- public void testApiName()
- public void testGetHeaderPrefix()
- public void testAuthenticate()
- public void testValidateRequestTime()
- public void testGetCanonicalHeaders()
- public void testValidateContentIntegrity()
- public void testImplodeHeaders()
- public void testValidateSignedRequest()
- private string getTestClassName()
- private string getTestMethodName()
- private ReflectionMethod getPrivateTestMethod()
Hierarchy
Extends
- SapphireTest
Members
private
- $oldApiName
protected
- $extraDataObjects
- $fixture_file
Methods
private
- getPrivateTestMethod() — Given a method name and a class name, uses Reflection to obtain a reference to a class's method. Useful for testing protected and private methods.
- getTestClassName() — Assuming the convention that test classes are named by the class name they're testing followed by 'Test', this function returns the name of the class that's being tested.r
- getTestMethodName() — Assuming the convention that test methods are named 'get' followed by the name of the function they're testing, this function returns the name of this function (removing 'get' and converting the first letter to lowercase).