Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix PreLoadEventArgsTest for PHP 5.3

Originally introduced in commit 13338b2 for #792.
  • Loading branch information...
commit 9308f4a8edfc84c07dc75c86b1e6666b25582c82 1 parent 85f6898
@jmikola jmikola authored
View
5 tests/Doctrine/ODM/MongoDB/Tests/Events/PreLoadEventArgsTest.php
@@ -14,10 +14,11 @@ public function testGetData()
$data = array('id' => '1234', 'name' => 'test');
$eventArgs = new PreLoadEventArgs($document, $dm, $data);
+ $eventArgsData =& $eventArgs->getData();
- $this->assertEquals('test', $eventArgs->getData()['name']);
+ $this->assertEquals('test', $eventArgsData['name']);
- $eventArgs->getData()['name'] = 'alt name';
+ $eventArgsData['name'] = 'alt name';
$this->assertEquals('alt name', $data['name']);
}
Please sign in to comment.
Something went wrong with that request. Please try again.