Commit cc6814d7 authored by Ylan Fleurant's avatar Ylan Fleurant
Browse files

dev #90811 : compat php 7.3

parent e283ae7e
Pipeline #7426 failed with stages
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/Class.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Class
*/
class ZendL_Reflection_ClassTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_ClassTest extends PHPUnit\Framework\TestCase
{
static protected $_sampleClassFileRequired = false;
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/File.php';
* @group ZendL_Reflection_Docblock_Tag
* @group ZendL_Reflection_Docblock_Tag_Param
*/
class ZendL_Reflection_Docblock_Tag_ParamTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_Docblock_Tag_ParamTest extends PHPUnit\Framework\TestCase
{
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/File.php';
* @group ZendL_Reflection_Docblock_Tag
* @group ZendL_Reflection_Docblock_Tag_Return
*/
class ZendL_Reflection_Docblock_Tag_ReturnTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_Docblock_Tag_ReturnTest extends PHPUnit\Framework\TestCase
{
static protected $_sampleClassFileRequired = false;
......
......@@ -8,7 +8,7 @@ require_once 'ZendL/Reflection/File.php';
* @group ZendL_Reflection_Docblock
* @group ZendL_Reflection_Docblock_Tag
*/
class ZendL_Reflection_Docblock_TagTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_Docblock_TagTest extends PHPUnit\Framework\TestCase
{
......
......@@ -7,7 +7,7 @@ require_once 'ZendL/Reflection/File.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Docblock
*/
class ZendL_Reflection_DocblockTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_DocblockTest extends PHPUnit\Framework\TestCase
{
......
......@@ -8,7 +8,7 @@ require_once 'ZendL/Reflection/Extension.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Extension
*/
class ZendL_Reflection_ExtensionTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_ExtensionTest extends PHPUnit\Framework\TestCase
{
public function testClassReturn()
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/File.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_File
*/
class ZendL_Reflection_FileTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_FileTest extends PHPUnit\Framework\TestCase
{
public function testConstructor()
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/Function.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Function
*/
class ZendL_Reflection_FunctionTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_FunctionTest extends PHPUnit\Framework\TestCase
{
static protected $_sampleClassFileRequired = false;
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/Method.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Method
*/
class ZendL_Reflection_MethodTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_MethodTest extends PHPUnit\Framework\TestCase
{
static protected $_sampleClassFileRequired = false;
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/Parameter.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Parameter
*/
class ZendL_Reflection_ParameterTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_ParameterTest extends PHPUnit\Framework\TestCase
{
static protected $_sampleClassFileRequired = false;
......
......@@ -9,7 +9,7 @@ require_once 'ZendL/Reflection/Property.php';
* @group ZendL_Reflection
* @group ZendL_Reflection_Property
*/
class ZendL_Reflection_PropertyTest extends PHPUnit_Framework_TestCase
class ZendL_Reflection_PropertyTest extends PHPUnit\Framework\TestCase
{
static protected $_sampleClassFileRequired = false;
......
......@@ -6,7 +6,7 @@ require_once 'ZendL/Tool/CodeGenerator/Php/Class.php';
*
* @group ZendL_Tool_CodeGenerator_Php
*/
class ZendL_Tool_CodeGenerator_Php_ClassTest extends PHPUnit_Framework_TestCase
class ZendL_Tool_CodeGenerator_Php_ClassTest extends PHPUnit\Framework\TestCase
{
public function testConstruction()
......
......@@ -8,7 +8,7 @@ require_once 'ZendL/Reflection/File.php';
* @group ZendL_Tool_CodeGenerator_Php
* @group ZendL_Tool_CodeGenerator_Php_File
*/
class ZendL_Tool_CodeGenerator_Php_FileTest extends PHPUnit_Framework_TestCase
class ZendL_Tool_CodeGenerator_Php_FileTest extends PHPUnit\Framework\TestCase
{
public function testConstruction()
......
......@@ -6,7 +6,7 @@ require_once 'ZendL/Tool/CodeGenerator/Php/Method.php';
*
* @group ZendL_Tool_CodeGenerator_Php
*/
class ZendL_Tool_CodeGenerator_Php_MethodTest extends PHPUnit_Framework_TestCase
class ZendL_Tool_CodeGenerator_Php_MethodTest extends PHPUnit\Framework\TestCase
{
public function testConstructor()
......
......@@ -6,7 +6,7 @@ require_once 'ZendL/Tool/CodeGenerator/Php/Property.php';
*
* @group ZendL_Tool_CodeGenerator_Php
*/
class ZendL_Tool_CodeGenerator_Php_PropertyTest extends PHPUnit_Framework_TestCase
class ZendL_Tool_CodeGenerator_Php_PropertyTest extends PHPUnit\Framework\TestCase
{
public function testConstructor()
......
<?php
/** PHPUnit_Framework_Constraint */
/** PHPUnit\Framework\Constraint */
// require_once 'PHPUnit/Framework/Constraint.php';
/** Zend_Dom_Query */
......@@ -8,13 +8,13 @@ require_once 'Zend/Dom/Query.php';
/**
* Zend_Dom_Query-based PHPUnit Constraint
*
* @uses PHPUnit_Framework_Constraint
* @uses PHPUnit\Framework\Constraint
* @package Zend_Test
* @subpackage PHPUnit
* @copyright Copyright (C) 2008 - Present, Zend Technologies, Inc.
* @license New BSD {@link http://framework.zend.com/license/new-bsd}
*/
class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit\Framework\Constraint\Constraint
{
/**#@+
* @const string Assertion type constants
......@@ -180,14 +180,14 @@ class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
/**
* Report Failure
*
* @see PHPUnit_Framework_Constraint for implementation details
* @see PHPUnit\Framework\Constraint for implementation details
* @param mixed $other CSS selector path
* @param string $description
* @param bool $not
* @return void
* @throws PHPUnit_Framework_ExpectationFailedException
* @throws PHPUnit\Framework\ExpectationFailedException
*/
public function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL)
public function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL):void
{
$not = $comparisonFailure;
//public function fail($other, $description, $not = false)
......@@ -245,7 +245,7 @@ class Zend_Test_PHPUnit_Constraint_DomQuery extends PHPUnit_Framework_Constraint
*
* @return string
*/
public function toString()
public function toString():string
{
return '';
}
......
<?php
/** PHPUnit_Framework_ExpectationFailedException */
/** PHPUnit\Framework\ExpectationFailedException */
// require_once 'PHPUnit/Framework/ExpectationFailedException.php';
/**
* Zend_Test_PHPUnit_Constraint_Exception
*
* @uses PHPUnit_Framework_ExpectationFailedException
* @uses PHPUnit\Framework\ExpectationFailedException
* @package Zend_Test
* @subpackage PHPUnit
* @copyright Copyright (C) 2008 - Present, Zend Technologies, Inc.
* @license New BSD {@link http://framework.zend.com/license/new-bsd}
*/
class Zend_Test_PHPUnit_Constraint_Exception extends PHPUnit_Framework_ExpectationFailedException
class Zend_Test_PHPUnit_Constraint_Exception extends PHPUnit\Framework\ExpectationFailedException
{
}
<?php
/** PHPUnit_Framework_Constraint */
/** PHPUnit\Framework\Constraint */
// require_once 'PHPUnit/Framework/Constraint.php';
/**
* Redirection constraints
*
* @uses PHPUnit_Framework_Constraint
* @uses PHPUnit\Framework\Constraint
* @package Zend_Test
* @subpackage PHPUnit
* @copyright Copyright (C) 2008 - Present, Zend Technologies, Inc.
* @license New BSD {@link http://framework.zend.com/license/new-bsd}
*/
class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit\Framework\Constraint\Constraint
{
/**#@+
* @const string Assertion type constants
......@@ -130,14 +130,14 @@ class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
/**
* Report Failure
*
* @see PHPUnit_Framework_Constraint for implementation details
* @see PHPUnit\Framework\Constraint for implementation details
* @param mixed $other
* @param string $description Additional message to display
* @param bool $not
* @return void
* @throws PHPUnit_Framework_ExpectationFailedException
* @throws PHPUnit\Framework\ExpectationFailedException
*/
public function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL)
public function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL):void
{
//public function fail($other, $description, $not = false)
$not = $comparisonFailure;
......@@ -179,7 +179,7 @@ class Zend_Test_PHPUnit_Constraint_Redirect extends PHPUnit_Framework_Constraint
*
* @return string
*/
public function toString()
public function toString():string
{
return '';
}
......
<?php
/** PHPUnit_Framework_Constraint */
/** PHPUnit\Framework\Constraint */
// require_once 'PHPUnit/Framework/Constraint.php';
/**
* Response header PHPUnit Constraint
*
* @uses PHPUnit_Framework_Constraint
* @uses PHPUnit\Framework\Constraint
* @package Zend_Test
* @subpackage PHPUnit
* @copyright Copyright (C) 2008 - Present, Zend Technologies, Inc.
* @license New BSD {@link http://framework.zend.com/license/new-bsd}
*/
class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Constraint
class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit\Framework\Constraint\Constraint
{
/**#@+
* @const string Assertion type constants
......@@ -160,14 +160,14 @@ class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Cons
/**
* Report Failure
*
* @see PHPUnit_Framework_Constraint for implementation details
* @see PHPUnit\Framework\Constraint for implementation details
* @param mixed $other
* @param string $description Additional message to display
* @param bool $not
* @return void
* @throws PHPUnit_Framework_ExpectationFailedException
* @throws PHPUnit\Framework\ExpectationFailedException
*/
public function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL)
public function fail($other, $description, SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL):void
{
$not = $comparisonFailure;
//public function fail($other, $description, $not = false)
......@@ -217,7 +217,7 @@ class Zend_Test_PHPUnit_Constraint_ResponseHeader extends PHPUnit_Framework_Cons
*
* @return string
*/
public function toString()
public function toString():string
{
return '';
}
......
<?php
/** PHPUnit_Framework_TestCase */
/** PHPUnit\Framework\TestCase */
// require_once 'PHPUnit/Framework/TestCase.php';
/** Zend_Controller_Front */
......@@ -21,13 +21,14 @@ require_once 'Zend/Session.php';
/**
* Functional testing scaffold for MVC applications
*
* @uses PHPUnit_Framework_TestCase
* @uses PHPUnit\Framework\TestCase
* @package Zend_Test
* @subpackage PHPUnit
* @copyright Copyright (C) 2008 - Present, Zend Technologies, Inc.
* @license New BSD {@link http://framework.zend.com/license/new-bsd}
*/
abstract class Zend_Test_PHPUnit_ControllerTestCase extends PHPUnit_Framework_TestCase
use PHPUnit\Framework\TestCase;
abstract class Zend_Test_PHPUnit_ControllerTestCase extends TestCase
{
/**
* @var mixed Bootstrap file path or callback
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment