/** * Test related method */ public function testToString() { $this->assertEquals('', $this->currency->__toString()); $expectedCode = 'test-code'; $this->currency->setCode($expectedCode); $this->assertEquals($expectedCode, $this->currency->__toString()); }
/** * {@inheritDoc} */ public function __toString() { $this->__initializer__ && $this->__initializer__->__invoke($this, '__toString', array()); return parent::__toString(); }