BetterReflectionTest\Reflection\ReflectionClassTest::testHasConstant PHP Method

testHasConstant() public method

public testHasConstant ( )
    public function testHasConstant()
    {
        $reflector = new ClassReflector($this->getComposerLocator());
        $classInfo = $reflector->reflect('\\BetterReflectionTest\\Fixture\\ExampleClass');
        $this->assertFalse($classInfo->hasConstant('NON_EXISTENT_CONSTANT'));
        $this->assertTrue($classInfo->hasConstant('MY_CONST_1'));
    }
ReflectionClassTest