Skip to content

Commit

Permalink
Merge branch '3.6' of github.com:sebastianbergmann/phpunit into 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 10, 2011
2 parents a3bf2a6 + 30c5baa commit e303cf9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 18 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.markdown
Expand Up @@ -3,6 +3,13 @@ PHPUnit 3.6

This is the list of changes for the PHPUnit 3.6 release series.

PHPUnit 3.6.5
-------------

* Fixed #204: Bootstrap script should be loaded before trying to load `testSuiteLoaderClass`.
* Fixed #413: PHPT test failures display double diffs.
* Fixed #430: OutputTestCase didn't work with @depends. Please note that this way of output testing is still deprecated.

PHPUnit 3.6.4
-------------

Expand Down
2 changes: 1 addition & 1 deletion PHPUnit/Extensions/OutputTestCase.php
Expand Up @@ -71,6 +71,6 @@ protected function runTest()
'PHPUnit_Extensions_OutputTestCase.'
);

parent::runTest();
return parent::runTest();
}
}
8 changes: 2 additions & 6 deletions PHPUnit/Framework/TestFailure.php
Expand Up @@ -117,16 +117,12 @@ public static function exceptionToString(Exception $e)
if ($e instanceof PHPUnit_Framework_SelfDescribing) {
$buffer = $e->toString();

if ($e instanceof PHPUnit_Framework_ComparisonFailure) {
$buffer = trim($buffer . "\n" . $e->getDiff());
}

if ($e instanceof PHPUnit_Framework_ExpectationFailedException && $e->getComparisonFailure()) {
$buffer = trim($buffer . "\n" . $e->getComparisonFailure()->getDiff());
$buffer = $buffer . "\n" . $e->getComparisonFailure()->getDiff();
}

if (!empty($buffer)) {
$buffer .= "\n";
$buffer = trim($buffer) . "\n";
}
}

Expand Down
16 changes: 6 additions & 10 deletions PHPUnit/TextUI/Command.php
Expand Up @@ -609,6 +609,12 @@ protected function handleArguments(array $argv)

$phpunit = $configuration->getPHPUnitConfiguration();

$configuration->handlePHPConfiguration();

if (!isset($this->arguments['bootstrap']) && isset($phpunit['bootstrap'])) {
$this->handleBootstrap($phpunit['bootstrap']);
}

if (isset($phpunit['printerClass'])) {
if (isset($phpunit['printerFile'])) {
$file = $phpunit['printerFile'];
Expand Down Expand Up @@ -649,16 +655,6 @@ protected function handleArguments(array $argv)
}
}

$configuration->handlePHPConfiguration();

if (!isset($this->arguments['bootstrap'])) {
$phpunitConfiguration = $configuration->getPHPUnitConfiguration();

if (isset($phpunitConfiguration['bootstrap'])) {
$this->handleBootstrap($phpunitConfiguration['bootstrap']);
}
}

$browsers = $configuration->getSeleniumBrowserConfiguration();

if (!empty($browsers) &&
Expand Down
4 changes: 3 additions & 1 deletion PHPUnit/Util/Log/TAP.php
Expand Up @@ -43,7 +43,9 @@
* @since File available since Release 3.0.0
*/

require_once 'SymfonyComponents/YAML/sfYamlDumper.php';
if (!class_exists('sfYamlDumper', FALSE)) {
require_once 'SymfonyComponents/YAML/sfYamlDumper.php';
}

/**
* A TestListener that generates a logfile of the
Expand Down
1 change: 1 addition & 0 deletions package.xml
Expand Up @@ -468,6 +468,7 @@
<file baseinstalldir="/" name="phpunit.php" role="script">
<tasks:replace from="/usr/bin/env php" to="php_bin" type="pear-config"/>
<tasks:replace from="@php_bin@" to="php_bin" type="pear-config" />
<tasks:replace from="@php_dir@" to="php_dir" type="pear-config" />
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
<file baseinstalldir="/" name="phpunit.bat" role="script">
Expand Down

0 comments on commit e303cf9

Please sign in to comment.