assertSame('regional', $config->getEndpointsType()); } public function testAcceptsNonLowercase() { $config = new Configuration('rEgIoNaL'); $this->assertSame('regional', $config->getEndpointsType()); } public function testToArray() { $config = new Configuration('regional'); $expected = [ 'endpoints_type' => 'regional', ]; $this->assertEquals($expected, $config->toArray()); } public function testThrowsOnInvalidEndpointsType() { $this->expectExceptionMessage("Configuration parameter must either be 'legacy' or 'regional'."); $this->expectException(\InvalidArgumentException::class); new Configuration('invalid_type'); } }