silverstripe-textextraction/tests/HTMLTextExtractorTest.php
2012-08-22 18:23:06 +02:00

11 lines
293 B
PHP

<?php
class HTMLTextExtractorTest extends SapphireTest {
function testExtraction() {
$extractor = new HTMLTextExtractor();
$content = $extractor->getContent(Director::baseFolder() . '/textextraction/tests/fixtures/test1.html');
$this->assertContains('Test Headline', $content);
}
}