public function testCreateFromName() { $method = ReflectionMethod::createFromName(\SplDoublyLinkedList::class, 'add'); $this->assertInstanceOf(ReflectionMethod::class, $method); $this->assertSame('add', $method->getName()); }