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