<?php
// Hoplite
// Copyright (c) 2011 Blue Static
-//
+//
// This program is free software: you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation, either version 3 of the License, or any later version.
-//
+//
// This program is distributed in the hope that it will be useful, but WITHOUT
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
{
$this->_Print(NULL, $this->_ErrorLocation($e));
$this->_Print(' ', $e->GetMessage());
+ if ($e instanceof \PHPUnit_Framework_ExpectationFailedException) {
+ $comp = $e->GetComparisonFailure();
+ if ($comp instanceof \PHPUnit_Framework_ComparisonFailure) {
+ $this->_Print(' ==> ', $comp->GetExpectedAsString());
+ $this->_Print('', 'does not match');
+ $this->_Print(' ==> ', $comp->GetActualAsString());
+ }
+ }
$this->_Print('[ FAILED ]', $test->ToString() . ' (' . $this->_Round($time) . ' ms)', self::COLOR_RED);
++$this->suite_error_count;
$this->failing[] = $test->ToString();