Ejemplo n.º 1
0
 /**
  * @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'));
 }
Ejemplo n.º 2
0
 public function testToHtml()
 {
     $this->_block->setText('test');
     $this->assertEquals('test', $this->_block->toHtml());
 }