diff --git a/lib/Cake/Test/Case/Core/CakeObjectTest.php b/lib/Cake/Test/Case/Core/CakeObjectTest.php index 01a46d6a8ed..ace73535a81 100644 --- a/lib/Cake/Test/Case/Core/CakeObjectTest.php +++ b/lib/Cake/Test/Case/Core/CakeObjectTest.php @@ -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 @@ public function testRequestActionPostWithData() { ); $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); + } }