Permalink
Browse files

Fix PreLoadEventArgsTest for PHP 5.3

Originally introduced in commit 13338b2 for #792.
  • Loading branch information...
1 parent 85f6898 commit 9308f4a8edfc84c07dc75c86b1e6666b25582c82 @jmikola jmikola committed Feb 5, 2014
Showing with 3 additions and 2 deletions.
  1. +3 −2 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']);
}

0 comments on commit 9308f4a

Please sign in to comment.