BetterReflectionTest\Reflection\ReflectionParameterTest::testCannotClone PHP Method

testCannotClone() public method

public testCannotClone ( )
    public function testCannotClone()
    {
        $classInfo = $this->reflector->reflect('\\BetterReflectionTest\\Fixture\\Methods');
        $methodInfo = $classInfo->getMethod('methodWithParameters');
        $paramInfo = $methodInfo->getParameter('parameter1');
        $this->expectException(Uncloneable::class);
        $unused = clone $paramInfo;
    }