Exemplo n.º 1
0
 public function testDisplay()
 {
     ob_start();
     $this->_object->display();
     $actualHtml = ob_get_clean();
     $expectedHtmlFile = __DIR__ . '/../_files/output.html';
     $this->assertStringEqualsFile($expectedHtmlFile, $actualHtml);
 }
Exemplo n.º 2
0
 public function testDisplay()
 {
     ob_start();
     $this->_object->display();
     $actualHtml = ob_get_clean();
     $expectedString = file_get_contents(__DIR__ . '/../_files/output.html');
     $expectedString = ltrim(preg_replace('/^<!--.+?-->/s', '', $expectedString));
     $this->assertEquals($expectedString, $actualHtml);
 }