'\\Throwable', 'method2' => 'DateTime'] ); $this->assertEquals( ['method1' => \Throwable::class, 'method2' => \DateTime::class], $map->getMap() ); } /** * Test validation of interface names. * * @expectedException \InvalidArgumentException */ public function testExisting() { new HttpMethodMap(['method1' => 'NonExistingClass']); } /** * Test validation of method names. * * @expectedException \InvalidArgumentException */ public function testMethod() { new HttpMethodMap([\Throwable::class]); } }