setExpectedException( $exception ); } } } return; } if ( !trait_exists( PHPUnit4And6Compat::class ) ) { trait PHPUnit4And6Compat { } } error_reporting( -1 ); ini_set( 'display_errors', 1 ); if ( !is_readable( __DIR__ . '/../vendor/autoload.php' ) ) { die( 'You need to install this package with Composer before you can run the tests' ); } require __DIR__ . '/../vendor/autoload.php';