/** * Tests the if the attribute getter/setter works with a object. * * @return void */ public function testGetSetAttributeWithObject() { $stdClass = new \stdClass(); $stdClass->test = 'Testvalue'; $this->initialContext->setAttribute('stdClass', $stdClass); $this->assertEquals($stdClass->test, $this->initialContext->getAttribute('stdClass')->test); }