Skip to content

Commit

Permalink
Merge pull request consolidation#139 from vkunz/phpunit-xml-log-switch
Browse files Browse the repository at this point in the history
phpunit: replace log-xml with log-junit
  • Loading branch information
DavertMik committed Mar 12, 2015
2 parents c0ad9d5 + 8a5c0bc commit 49a91e0
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 49a91e0

Please sign in to comment.