Skip to content
Permalink
Browse files

Fixed FixtureInjector method compatibility

  • Loading branch information...
jeremyharris committed Jun 23, 2017
1 parent 4319fd4 commit 661bec0659be393be44906eee6ec89989e7606dc
Showing with 2 additions and 80 deletions.
  1. +2 −80 src/TestSuite/Fixture/FixtureInjector.php
@@ -24,24 +24,18 @@ class_alias('PHPUnit_Framework_Warning', 'PHPUnit\Framework\Warning');
if (!class_exists('PHPUnit\Framework\TestSuite')) {
class_alias('PHPUnit_Framework_TestSuite', 'PHPUnit\Framework\TestSuite');
}
if (!class_exists('PHPUnit\Framework\AssertionFailedError')) {
class_alias('PHPUnit_Framework_AssertionFailedError', 'PHPUnit\Framework\AssertionFailedError');
}
}
use Cake\TestSuite\TestCase;
use Exception;
use PHPUnit\Framework\AssertionFailedError;
use PHPUnit\Framework\BaseTestListener;
use PHPUnit\Framework\Test;
use PHPUnit\Framework\TestListener;
use PHPUnit\Framework\TestSuite;
use PHPUnit\Framework\Warning;
/**
* Test listener used to inject a fixture manager in all tests that
* are composed inside a Test Suite
*/
class FixtureInjector implements TestListener
class FixtureInjector extends BaseTestListener
{
/**
@@ -100,66 +94,6 @@ public function endTestSuite(TestSuite $suite)
}
}
/**
* Not Implemented
*
* @param \PHPUnit\Framework\Test $test The test to add errors from.
* @param \Exception $e The exception
* @param float $time current time
* @return void
*/
public function addError(Test $test, Exception $e, $time)
{
}
/**
* Not Implemented
*
* @param \PHPUnit\Framework\Test $test The test to add warnings from.
* @param \PHPUnit\Framework\Warning $e The warning
* @param float $time current time
* @return void
*/
public function addWarning(Test $test, Warning $e, $time)
{
}
/**
* Not Implemented
*
* @param \PHPUnit\Framework\Test $test The test case
* @param \PHPUnit\Framework\AssertionFailedError $e The failed assertion
* @param float $time current time
* @return void
*/
public function addFailure(Test $test, AssertionFailedError $e, $time)
{
}
/**
* Not Implemented
*
* @param \PHPUnit\Framework\Test $test The test case
* @param \Exception $e The incomplete test error.
* @param float $time current time
* @return void
*/
public function addIncompleteTest(Test $test, Exception $e, $time)
{
}
/**
* Not Implemented
*
* @param \PHPUnit\Framework\Test $test The test case
* @param \Exception $e Skipped test exception
* @param float $time current time
* @return void
*/
public function addSkippedTest(Test $test, Exception $e, $time)
{
}
/**
* Adds fixtures to a test case when it starts.
*
@@ -188,16 +122,4 @@ public function endTest(Test $test, $time)
$this->_fixtureManager->unload($test);
}
}
/**
* Not Implemented
*
* @param \PHPUnit\Framework\Test $test The test case
* @param \Exception $e The exception to track
* @param float $time current time
* @return void
*/
public function addRiskyTest(Test $test, Exception $e, $time)
{
}
}

0 comments on commit 661bec0

Please sign in to comment.
You can’t perform that action at this time.