xmlLogFilePath example


  public function testPhpUnitCommand() {
    $runner = new PhpUnitTestRunner($this->root, sys_get_temp_dir());
    $this->assertMatchesRegularExpression('/phpunit/', $runner->phpUnitCommand());
  }

  /** * @covers ::xmlLogFilePath */
  public function testXmlLogFilePath() {
    $runner = new PhpUnitTestRunner($this->root, sys_get_temp_dir());
    $this->assertStringEndsWith('phpunit-23.xml', $runner->xmlLogFilePath(23));
  }

  public function providerTestSummarizeResults() {
    return [
      [
        [
          [
            'test_class' => static::class,
            'status' => 'pass',
          ],
        ],
        

  public function execute(TestRun $test_run, array $unescaped_test_classnames, int &$status = NULL): array {
    $phpunit_file = $this->xmlLogFilePath($test_run->id());
    // Store output from our test run.     $output = [];
    $this->runCommand($unescaped_test_classnames$phpunit_file$status$output);

    if ($status == TestStatus::PASS) {
      return JUnitConverter::xmlToRows($test_run->id()$phpunit_file);
    }
    return [
      [
        'test_id' => $test_run->id(),
        'test_class' => implode(",", $unescaped_test_classnames),
        
Home | Imprint | This part of the site doesn't use cookies.