mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add a test case to make sure of backward compatibility
This commit is contained in:
parent
7207d8f16a
commit
5006cc396a
1 changed files with 12 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
App::uses('CakeObject', 'Core');
|
App::uses('CakeObject', 'Core');
|
||||||
|
App::uses('Object', 'Core');
|
||||||
App::uses('Router', 'Routing');
|
App::uses('Router', 'Routing');
|
||||||
App::uses('Controller', 'Controller');
|
App::uses('Controller', 'Controller');
|
||||||
App::uses('Model', 'Model');
|
App::uses('Model', 'Model');
|
||||||
|
@ -677,4 +678,15 @@ class ObjectTest extends CakeTestCase {
|
||||||
);
|
);
|
||||||
$this->assertEquals($data, $result);
|
$this->assertEquals($data, $result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test backward compatibility
|
||||||
|
*
|
||||||
|
* @return voind
|
||||||
|
*/
|
||||||
|
public function testBackwardCompatibility() {
|
||||||
|
$this->skipIf(version_compare(PHP_VERSION, '7.0.0', '>='));
|
||||||
|
|
||||||
|
$this->assertInstanceOf('Object', new ObjectTestModel);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue