/** * Sets direction 'ltr' or 'rtl' for global document * * @param string $textDirection 'ltr' for left-to-right or 'rtl' for right-to-left texts globally on the page */ public function setDirection($textDirection = 'ltr') { if ($this->_cmsDoc) { $this->_cmsDoc->setDirection($textDirection); } $this->_direction = $textDirection; }
/** * @todo Implement testSetDirection(). */ public function testSetDirection() { $this->object = new JDocument; $this->object->setDirection('rtl'); $this->assertThat( $this->object->direction, $this->equalTo('rtl') ); }
/** * @testdox Test that setDirection returns an instance of $this */ public function testEnsureSetDirectionReturnsThisObject() { $this->assertSame($this->object, $this->object->setDirection('rtl')); }