1: <?php
2: /**
3: * CakePHP(tm) : Rapid Development Framework (https://cakephp.org)
4: * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
5: *
6: * Licensed under The MIT License
7: * For full copyright and license information, please see the LICENSE.txt
8: * Redistributions of files must retain the above copyright notice
9: *
10: * @copyright Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
11: * @since 3.0.0
12: * @license https://opensource.org/licenses/mit-license.php MIT License
13: */
14: namespace Cake\TestSuite;
15:
16: if (class_exists('PHPUnit_Runner_Version', false) && !interface_exists('PHPUnit\Exception', false)) {
17: if (version_compare(\PHPUnit_Runner_Version::id(), '5.7', '<')) {
18: trigger_error(sprintf('Your PHPUnit Version must be at least 5.7.0 to use CakePHP Testsuite, found %s', \PHPUnit_Runner_Version::id()), E_USER_ERROR);
19: }
20: class_alias('PHPUnit_Exception', 'PHPUnit\Exception');
21: }
22:
23: /**
24: * A test case class intended to make integration tests of
25: * your controllers easier.
26: *
27: * This test class provides a number of helper methods and features
28: * that make dispatching requests and checking their responses simpler.
29: * It favours full integration tests over mock objects as you can test
30: * more of your code easily and avoid some of the maintenance pitfalls
31: * that mock objects create.
32: *
33: * @deprecated 3.7.0 Use Cake\TestSuite\IntegrationTestTrait instead
34: */
35: abstract class IntegrationTestCase extends TestCase
36: {
37: use IntegrationTestTrait;
38: }
39: