3 namespace Caxy\Tests\HtmlDiff\Performance;
5 use Caxy\HtmlDiff\HtmlDiff;
6 use Caxy\Tests\AbstractTest;
8 class PerformanceTest extends AbstractTest
13 public function testParagraphPerformance()
15 $fixturesPath = __DIR__ . '/../../../../fixtures/Performance/';
17 $expected = file_get_contents($fixturesPath . 'paragraphs_expected.html');
20 file_get_contents($fixturesPath . 'paragraphs.html'),
21 file_get_contents($fixturesPath . 'paragraphs_changed.html'),
25 $output = $diff->build();
27 $this->assertSame($this->stripExtraWhitespaceAndNewLines($output), $this->stripExtraWhitespaceAndNewLines($expected));