parseTestedFiles() public method

Parse tested files of the unit test and injects them in Unit::setTestedFiles()
public parseTestedFiles ( Hal\MutaTesting\Test\UnitInterface &$unit ) : Hal\MutaTesting\Test\UnitInterface
$unit Hal\MutaTesting\Test\UnitInterface
return Hal\MutaTesting\Test\UnitInterface
 public function testICanGetTestedFilesFromUnitTest()
 {
     $filename = $this->directory . 'ExampleTest.php';
     $content = '<?php
         namespace vendor\\project\\tests\\units;
         require_once "ExampleSrc.php";
         use \\mageekguy\\atoum;
         use \\vendor\\project;
         class helloWorld extends atoum\\test {
             public function testSay() {
                 $helloWorld = new project\\helloWorld();
                 $this->string($helloWorld->say())->isEqualTo("Hello World!")
                 ;
             }
         }
     ';
     file_put_contents($filename, $content);
     $filename = $this->directory . 'ExampleSrc.php';
     $content = '<?php
     namespace vendor\\project;
     class helloWorld {
         public function say() {
             return "Hello World!";
         }
     }
     ';
     file_put_contents($filename, $content);
     $runner = new AtoumAdapter($this->binary, $this->directory);
     // @todo mock
     $unit = new \Hal\MutaTesting\Test\Unit();
     $unit->setFile($this->directory . 'ExampleTest.php');
     $runner->parseTestedFiles($unit);
     $testedFiles = $unit->getTestedFiles();
     $expected = array($this->directory . 'ExampleSrc.php');
     $this->assertEquals($expected, $testedFiles);
 }