Permalink
Browse files

Merge pull request #794 from doctrine/fix/preload-event-args-test

Fix PreLoadEventArgsTest for PHP 5.3
  • Loading branch information...
jmikola committed Feb 5, 2014
2 parents 85f6898 + 9308f4a commit 382f844b9a0d9ea3c689238b32b29f1a37508aed
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 382f844

Please sign in to comment.