run() public method

public run ( $path = null, array $options = [], $logFile = null, $prependFile = null, callable $callback = null )
$options array
$callback callable
    public function testICanGetTestSuites()
    {
        $filename = $this->directory . 'ExampleTest.php';
        $content = '<?php
class ExampleTest extends PHPUnit_Framework_TestCase {
    public function testEx1() {
        $this->assertEquals(1,1);
    }
}
';
        file_put_contents($filename, $content);
        $runner = new PHPUnitAdapter($this->binary, $this->directory);
        $logFile = tempnam(sys_get_temp_dir(), 'unit-test');
        $runner->run(null, array(), $logFile);
        $collection = $runner->getSuiteResult($logFile);
        $this->assertInstanceOf('\\Hal\\MutaTesting\\Test\\UnitCollectionInterface', $collection);
        $this->assertEquals(1, sizeof($collection->all()));
    }