TestParser::testConstant PHP Method

testConstant() public method

public testConstant ( )
    function testConstant()
    {
        $this->assertTrue(strpos($this->output, 'final int PHPDoctor\\Tests\\FileLevel\\CONSTANT = 1'));
        $this->assertTrue(strpos($this->output, 'final int PHPDoctor\\Tests\\FileLevel\\CONSTANT2 = 2'));
        $this->assertTrue(strpos($this->output, 'final str PHPDoctor\\Tests\\FileLevel\\CONSTANT3 = \'three\''));
        // global constant defined within another program element
        $this->assertTrue(strpos($this->output, 'final int PHPDoctor\\Tests\\FileLevel\\THREE = 3'));
    }