transform() public method

This method may transform the supplied source and return a new replacement for it
public transform ( StreamMetaData $metadata ) : void | boolean
$metadata StreamMetaData Metadata for source
return void | boolean Return false if transformation should be stopped
 public function testTransformerWrapsReflectionFileName()
 {
     $this->metadata->source = '<?php $class = new ReflectionClass("stdClass"); echo $class->getFileName(); ?>';
     $this->transformer->transform($this->metadata);
     $this->assertStringEndsWith('::resolveFileName($class->getFileName()); ?>', $this->metadata->source);
 }