File indexing completed on 2024-12-29 05:28:07

0001 <?php
0002 /**
0003  * Zend Framework
0004  *
0005  * LICENSE
0006  *
0007  * This source file is subject to the new BSD license that is bundled
0008  * with this package in the file LICENSE.txt.
0009  * It is also available through the world-wide-web at this URL:
0010  * http://framework.zend.com/license/new-bsd
0011  * If you did not receive a copy of the license and are unable to
0012  * obtain it through the world-wide-web, please send an email
0013  * to license@zend.com so we can send you a copy immediately.
0014  *
0015  * @category   Zend
0016  * @package    Zend_Test
0017  * @subpackage PHPUnit
0018  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
0019  * @license    http://framework.zend.com/license/new-bsd     New BSD License
0020  * @version    $Id$
0021  */
0022 
0023 if (version_compare(PHPUnit_Runner_Version::id(), '4.1', '>=')) {
0024     include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Redirect41.php');
0025 
0026     class Zend_Test_PHPUnit_Constraint_Redirect extends Zend_Test_PHPUnit_Constraint_Redirect41
0027     {}
0028 } elseif (version_compare(PHPUnit_Runner_Version::id(), '3.5', '>=')) {
0029     include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Redirect37.php');
0030 
0031     class Zend_Test_PHPUnit_Constraint_Redirect extends Zend_Test_PHPUnit_Constraint_Redirect37
0032     {}
0033 } else {
0034     include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Redirect34.php');
0035 
0036     class Zend_Test_PHPUnit_Constraint_Redirect extends Zend_Test_PHPUnit_Constraint_Redirect34
0037     {}
0038 }