Go\Instrument\Transformer\ConstructorExecutionTransformerTest::testCanTransformNewExpressions PHP Method

testCanTransformNewExpressions() public method

public testCanTransformNewExpressions ( $source, $expected )
    public function testCanTransformNewExpressions($source, $expected)
    {
        $this->metadata->source = "<?php {$source}; ?>";
        self::$transformer->transform($this->metadata);
        $output = "<?php {$expected}; ?>";
        $this->assertEquals($output, $this->metadata->source);
    }