Closed francescozanoni closed 4 years ago
We just bootstrap with this file:
<?php
define('TEST_EXECUTION', true);
require_once dirname(__FILE__) . '/../..' . '/app-loader.php';
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
I'm not really sure as to what you're doing with all of that to be honest.
Thank you soooooooooo much, I only needed this:
class PHPUnit_Framework_TestCase extends \PHPUnit\Framework\TestCase {}
class PHPUnit_Runner_Version extends \PHPUnit\Runner\Version {}
abstract class PHPUnit_Framework_Constraint extends \PHPUnit\Framework\Constraint\Constraint {}
abstract class PHPUnit_Framework_ExpectationFailedException extends \PHPUnit\Framework\ExpectationFailedException {}
:-)
@francescozanoni I'll just leave a note that in PHPUnit 8:
Fatal error: Class PHPUnit_Runner_Version may not inherit from final class (PHPUnit\Runner\Version)
Fatal error: Class PHPUnit_Framework_ExpectationFailedException may not inherit from final class (PHPUnit\Framework\ExpectationFailedException)
as I'm trying to find a combination of patches and placeholders for me to work :(
Hi, man. Currently only PHPUnit < 5 is supported out-of-the-box. My VERY DIRTY solution is the following script, executed after each
composer install
andcomposer update
:Couldn't this be achieved in a more elegant and convenient way? Any advice is welcome.
Thanks in advance!
Francesco