*/
public static function getDummySession( $backend = null, $index = -1, $logger = null ) {
$rc = new \ReflectionClass( Session::class );
- if ( !method_exists( $rc, 'newInstanceWithoutConstructor' ) ) {
- \PHPUnit_Framework_Assert::markTestSkipped(
- 'ReflectionClass::newInstanceWithoutConstructor isn\'t available'
- );
- }
if ( $backend === null ) {
$backend = new DummySessionBackend;