Skip to content
This repository has been archived by the owner on May 16, 2018. It is now read-only.

PHPUnit contraints: use real class names to help classmap generators #400

Merged
merged 3 commits into from
Dec 2, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions library/Zend/Test/PHPUnit/Constraint/DomQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@

if (version_compare(PHPUnit_Runner_Version::id(), '4.1', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'DomQuery41.php');

class Zend_Test_PHPUnit_Constraint_DomQuery extends Zend_Test_PHPUnit_Constraint_DomQuery41
{}
} elseif (version_compare(PHPUnit_Runner_Version::id(), '3.5', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'DomQuery37.php');

class Zend_Test_PHPUnit_Constraint_DomQuery extends Zend_Test_PHPUnit_Constraint_DomQuery37
{}
} else {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'DomQuery34.php');

class Zend_Test_PHPUnit_Constraint_DomQuery extends Zend_Test_PHPUnit_Constraint_DomQuery34
{}
}
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/DomQuery34.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_DomQuery34 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/DomQuery37.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_DomQuery37 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/DomQuery41.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_DomQuery41 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
9 changes: 9 additions & 0 deletions library/Zend/Test/PHPUnit/Constraint/Redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@

if (version_compare(PHPUnit_Runner_Version::id(), '4.1', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Redirect41.php');

class Zend_Test_PHPUnit_Constraint_Redirect extends Zend_Test_PHPUnit_Constraint_Redirect41
{}
} elseif (version_compare(PHPUnit_Runner_Version::id(), '3.5', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Redirect37.php');

class Zend_Test_PHPUnit_Constraint_Redirect extends Zend_Test_PHPUnit_Constraint_Redirect37
{}
} else {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Redirect34.php');

class Zend_Test_PHPUnit_Constraint_Redirect extends Zend_Test_PHPUnit_Constraint_Redirect34
{}
}
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/Redirect34.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_Redirect34 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/Redirect37.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_Redirect37 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/Redirect41.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_Redirect41 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
9 changes: 9 additions & 0 deletions library/Zend/Test/PHPUnit/Constraint/ResponseHeader.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,17 @@

if (version_compare(PHPUnit_Runner_Version::id(), '4.1', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'ResponseHeader41.php');

class Zend_Test_PHPUnit_Constraint_ResponseHeader extends Zend_Test_PHPUnit_Constraint_ResponseHeader41
{}
} elseif (version_compare(PHPUnit_Runner_Version::id(), '3.5', '>=')) {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'ResponseHeader37.php');

class Zend_Test_PHPUnit_Constraint_ResponseHeader extends Zend_Test_PHPUnit_Constraint_ResponseHeader37
{}
} else {
include(dirname(__FILE__) . DIRECTORY_SEPARATOR . 'ResponseHeader34.php');

class Zend_Test_PHPUnit_Constraint_ResponseHeader extends Zend_Test_PHPUnit_Constraint_ResponseHeader34
{}
}
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/ResponseHeader34.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_ResponseHeader34 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/ResponseHeader37.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_ResponseHeader37 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Test/PHPUnit/Constraint/ResponseHeader41.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_ResponseHeader41 extends PHPUnit_Framework_Constraint
{
/**#@+
* Assertion type constants
Expand Down