mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 16:27:20 +00:00
test: Updated TestSuite class for PHPUnit 9.5
This commit is contained in:
parent
aac44b074b
commit
0692ce5b62
27 changed files with 31 additions and 31 deletions
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllBehaviorsTest extends PHPUnit_Framework_TestSuite {
|
class AllBehaviorsTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Suite define the tests for this suite
|
* Suite define the tests for this suite
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllCacheTest extends PHPUnit_Framework_TestSuite {
|
class AllCacheTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllComponentsTest extends PHPUnit_Framework_TestSuite {
|
class AllComponentsTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllConfigureTest extends PHPUnit_Framework_TestSuite {
|
class AllConfigureTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllConsoleTest extends PHPUnit_Framework_TestSuite {
|
class AllConsoleTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllControllersTest extends PHPUnit_Framework_TestSuite {
|
class AllControllerTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllCoreTest extends PHPUnit_Framework_TestSuite {
|
class AllCoreTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllDatabaseTest extends PHPUnit_Framework_TestSuite {
|
class AllDatabaseTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
@ -31,7 +31,7 @@ class AllDatabaseTest extends PHPUnit_Framework_TestSuite {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function suite() {
|
public static function suite() {
|
||||||
$suite = new PHPUnit_Framework_TestSuite('Datasources, Schema and DbAcl tests');
|
$suite = new \PHPUnit\Framework\TestSuite('Datasources, Schema and DbAcl tests');
|
||||||
|
|
||||||
$path = CORE_TEST_CASES . DS . 'Model' . DS;
|
$path = CORE_TEST_CASES . DS . 'Model' . DS;
|
||||||
$tasks = array(
|
$tasks = array(
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllDbRelatedTest extends PHPUnit_Framework_TestSuite {
|
class AllDbRelatedTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Suite define the tests for this suite
|
* Suite define the tests for this suite
|
||||||
|
@ -31,7 +31,7 @@ class AllDbRelatedTest extends PHPUnit_Framework_TestSuite {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function suite() {
|
public static function suite() {
|
||||||
$suite = new PHPUnit_Framework_TestSuite('All Db Related Tests');
|
$suite = new \PHPUnit\Framework\TestSuite('All Db Related Tests');
|
||||||
|
|
||||||
$path = CORE_TEST_CASES . DS;
|
$path = CORE_TEST_CASES . DS;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllErrorTest extends PHPUnit_Framework_TestSuite {
|
class AllErrorTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllEventTest extends PHPUnit_Framework_TestSuite {
|
class AllEventTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllHelpersTest extends PHPUnit_Framework_TestSuite {
|
class AllHelpersTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite declares tests to run
|
* suite declares tests to run
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllLocalizationTest extends PHPUnit_Framework_TestSuite {
|
class AllI18nTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllLogTest extends PHPUnit_Framework_TestSuite {
|
class AllLogTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllNetworkTest extends PHPUnit_Framework_TestSuite {
|
class AllNetworkTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllRoutingTest extends PHPUnit_Framework_TestSuite {
|
class AllRoutingTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllTestSuiteTest extends PHPUnit_Framework_TestSuite {
|
class AllTestSuiteTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllTests extends PHPUnit_Framework_TestSuite {
|
class AllTestsTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Suite define the tests for this suite
|
* Suite define the tests for this suite
|
||||||
|
@ -31,7 +31,7 @@ class AllTests extends PHPUnit_Framework_TestSuite {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function suite() {
|
public static function suite() {
|
||||||
$suite = new PHPUnit_Framework_TestSuite('All Tests');
|
$suite = new \PHPUnit\Framework\TestSuite('All Tests');
|
||||||
|
|
||||||
$path = CORE_TEST_CASES . DS;
|
$path = CORE_TEST_CASES . DS;
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllUtilityTest extends PHPUnit_Framework_TestSuite {
|
class AllUtilityTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class AllViewTest extends PHPUnit_Framework_TestSuite {
|
class AllViewTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case.Console
|
* @package Cake.Test.Case.Console
|
||||||
*/
|
*/
|
||||||
class AllConsoleLibsTest extends PHPUnit_Framework_TestSuite {
|
class AllConsoleLibsTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case.Console
|
* @package Cake.Test.Case.Console
|
||||||
*/
|
*/
|
||||||
class AllConsoleTest extends PHPUnit_Framework_TestSuite {
|
class AllConsoleTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case.Console
|
* @package Cake.Test.Case.Console
|
||||||
*/
|
*/
|
||||||
class AllShellsTest extends PHPUnit_Framework_TestSuite {
|
class AllShellsTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case.Console
|
* @package Cake.Test.Case.Console
|
||||||
*/
|
*/
|
||||||
class AllTasksTest extends PHPUnit_Framework_TestSuite {
|
class AllTasksTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case.Model.Behavior
|
* @package Cake.Test.Case.Model.Behavior
|
||||||
*/
|
*/
|
||||||
class TreeBehaviorTest extends PHPUnit_Framework_TestSuite {
|
class TreeBehaviorTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
*
|
*
|
||||||
* @package Cake.Test.Case
|
* @package Cake.Test.Case
|
||||||
*/
|
*/
|
||||||
class ModelTest extends PHPUnit_Framework_TestSuite {
|
class ModelTest extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* suite method, defines tests for this suite.
|
* suite method, defines tests for this suite.
|
||||||
|
@ -31,7 +31,7 @@ class ModelTest extends PHPUnit_Framework_TestSuite {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function suite() {
|
public static function suite() {
|
||||||
$suite = new PHPUnit_Framework_TestSuite('All Model related class tests');
|
$suite = new \PHPUnit\Framework\TestSuite('All Model related class tests');
|
||||||
|
|
||||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Validator' . DS . 'CakeValidationSetTest.php');
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Validator' . DS . 'CakeValidationSetTest.php');
|
||||||
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Validator' . DS . 'CakeValidationRuleTest.php');
|
$suite->addTestFile(CORE_TEST_CASES . DS . 'Model' . DS . 'Validator' . DS . 'CakeValidationRuleTest.php');
|
||||||
|
|
|
@ -23,7 +23,7 @@ App::uses('Folder', 'Utility');
|
||||||
*
|
*
|
||||||
* @package Cake.TestSuite
|
* @package Cake.TestSuite
|
||||||
*/
|
*/
|
||||||
class CakeTestSuite extends PHPUnit_Framework_TestSuite {
|
class CakeTestSuite extends \PHPUnit\Framework\TestSuite {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds all the files in a directory to the test suite. Does not recurse through directories.
|
* Adds all the files in a directory to the test suite. Does not recurse through directories.
|
||||||
|
|
Loading…
Reference in a new issue