Add a test case to make sure of backward compatibility

This commit is contained in:
chinpei215 2016-04-11 00:43:35 +09:00
parent 7207d8f16a
commit 5006cc396a

View file

@ -17,6 +17,7 @@
*/
App::uses('CakeObject', 'Core');
App::uses('Object', 'Core');
App::uses('Router', 'Routing');
App::uses('Controller', 'Controller');
App::uses('Model', 'Model');
@ -677,4 +678,15 @@ class ObjectTest extends CakeTestCase {
);
$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);
}
}