BetterReflectionTest\Reflection\ReflectionClassTest::testSetIsFinalThrowsExceptionForInterface PHP Метод

testSetIsFinalThrowsExceptionForInterface() публичный Метод

    public function testSetIsFinalThrowsExceptionForInterface()
    {
        $php = '<?php
            interface Foo {}
        ';
        $reflection = (new ClassReflector(new StringSourceLocator($php)))->reflect('Foo');
        $this->expectException(NotAClassReflection::class);
        $reflection->setFinal(true);
    }
ReflectionClassTest