Skip to content

Commit

Permalink
replace log-xml with log-junit
Browse files Browse the repository at this point in the history
Starting with v3.4 PHPUnit replaced --log-xml with --log-junit.
  • Loading branch information
Valentin Kunz committed Mar 6, 2015
1 parent b4f9bf7 commit 8a5c0bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Task/Testing/PHPUnit.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ public function json($file = null)
}

/**
* adds `log-xml` option
* adds `log-junit` option
*
* @param string $file
* @return $this
*/
public function xml($file = null)
{
$this->option("log-xml", $file);
$this->option("log-junit", $file);
return $this;
}

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/PHPUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ public function testPHPUnitCommand()
->group('important')
->xml('result.xml')
->debug();
verify($task->getCommand())->equals('phpunit --bootstrap bootstrap.php --filter Model --group important --log-xml result.xml --debug');
verify($task->getCommand())->equals('phpunit --bootstrap bootstrap.php --filter Model --group important --log-junit result.xml --debug');
$task->run();
$this->phpunit->verifyInvoked('executeCommand', ['phpunit --bootstrap bootstrap.php --filter Model --group important --log-xml result.xml --debug']);
$this->phpunit->verifyInvoked('executeCommand', ['phpunit --bootstrap bootstrap.php --filter Model --group important --log-junit result.xml --debug']);
}

}

0 comments on commit 8a5c0bc

Please sign in to comment.