assertEquals($authorizationStatus->name(), $status); } public function testInvalidStatusProvided() { $this->expectException(RuntimeException::class); new AuthorizationStatus('invalid'); } public function testStatusComparision() { $authorizationStatus = new AuthorizationStatus('CREATED'); $this->assertTrue($authorizationStatus->is('CREATED')); $this->assertFalse($authorizationStatus->is('NOT_CREATED')); } public function statusDataProvider(): array { return [ ['INTERNAL'], ['CREATED'], ['CAPTURED'], ['DENIED'], ['EXPIRED'], ['PARTIALLY_CAPTURED'], ['VOIDED'], ['PENDING'], ]; } }