/** * @param string $text * @param bool $before * @param string $expectedResult * * @dataProvider addTextDataProvider */ public function testAddText($text, $before, $expectedResult) { $this->elementText->setText('example'); $this->elementText->addText($text, $before); $this->assertEquals($expectedResult, $this->elementText->getText('example')); }
public function testToHtml() { $this->_block->setText('test'); $this->assertEquals('test', $this->_block->toHtml()); }