public function testExpressionLanguageListenerCreateObject() { $fixtures = new FixtureCollection(array($this->createFixture('test1', array('key1' => array('foo' => '@expr(object("test2", "key2").test)'))), $this->createFixture('test2', array('key2' => array('test' => '@expr("foo" ~ "bar")'))))); $this->executor->expects($this->once())->method('createObject')->will($this->returnValue((object) array('test' => 'foobar'))); $event = new FixtureCollectionEvent($this->createFixtureManagerMock(), $fixtures); $this->listener->onPreExecute($event); $data1 = $fixtures->get('test1')->get('key1')->getData(); $data2 = $fixtures->get('test2')->get('key2')->getData(); $this->assertEquals('foobar', $data1['foo']); $this->assertEquals('foobar', $data2['test']); }