diff --git a/src/Task/Testing/PHPUnit.php b/src/Task/Testing/PHPUnit.php index e2fb03888..1057b6ca3 100644 --- a/src/Task/Testing/PHPUnit.php +++ b/src/Task/Testing/PHPUnit.php @@ -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; } diff --git a/tests/unit/PHPUnitTest.php b/tests/unit/PHPUnitTest.php index 0c4a3ef35..650f2d2d5 100644 --- a/tests/unit/PHPUnitTest.php +++ b/tests/unit/PHPUnitTest.php @@ -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']); } } \ No newline at end of file