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

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

    public function testCreateFromInstanceThrowsExceptionWhenInvalidArgumentProvided()
    {
        $this->expectException(\InvalidArgumentException::class);
        $this->expectExceptionMessage('Instance must be an instance of an object');
        ReflectionClass::createFromInstance('invalid argument');
    }
ReflectionClassTest