Go\Instrument\Transformer\WeavingTransformerTest::testWeaverForPhp7Class PHP Method

testWeaverForPhp7Class() public method

Check that weaver can work with PHP7 classes
    public function testWeaverForPhp7Class()
    {
        if (PHP_VERSION_ID < 50700) {
            $this->markTestSkipped("PHP7 version is required to run this test");
        }
        $metadata = $this->loadTest('php7-class');
        $this->transformer->transform($metadata);
        $actual = $this->normalizeWhitespaces($metadata->source);
        $expected = $this->normalizeWhitespaces($this->loadTest('php7-class-woven')->source);
        $this->assertEquals($expected, $actual);
    }