Go\Instrument\Transformer\MagicConstantTransformerTest::testTransformerCanResolveDirMagicConst PHP 메소드

testTransformerCanResolveDirMagicConst() 공개 메소드

    public function testTransformerCanResolveDirMagicConst()
    {
        $this->metadata->source = '<?php echo __DIR__; ?>';
        $expected = '<?php echo \'' . __DIR__ . '\'; ?>';
        $this->transformer->transform($this->metadata);
        $this->assertEquals($expected, $this->metadata->source);
    }