euromark 11 years ago
parent
commit
bad94a9aaf
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/TestCase/Model/Behavior/JsonableBehaviorTest.php

+ 1 - 1
tests/TestCase/Model/Behavior/JsonableBehaviorTest.php

@@ -216,7 +216,7 @@ class JsonableBehaviorTest extends TestCase {
 		$this->Comments->save($entity);
 		$this->Comments->save($entity);
 
 
 		$res = $this->Comments->find('all', array('conditions' => array('title' => 'param')))->first();
 		$res = $this->Comments->find('all', array('conditions' => array('title' => 'param')))->first();
-		$obj = new stdClass();
+		$obj = new \stdClass();
 		$obj->y = 'z';
 		$obj->y = 'z';
 		$expected = array('x' => $obj);
 		$expected = array('x' => $obj);
 		$this->assertEquals($expected, $res['details']);
 		$this->assertEquals($expected, $res['details']);