Skip to content

Commit

Permalink
Add a test case to make sure of backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
chinpei215 committed Apr 10, 2016
1 parent 7207d8f commit 5006cc3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Cake/Test/Case/Core/CakeObjectTest.php
Expand Up @@ -17,6 +17,7 @@
*/

App::uses('CakeObject', 'Core');
App::uses('Object', 'Core');
App::uses('Router', 'Routing');
App::uses('Controller', 'Controller');
App::uses('Model', 'Model');
Expand Down Expand Up @@ -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);
}
}

0 comments on commit 5006cc3

Please sign in to comment.