mirror of
https://github.com/silverstripe/silverstripe-textextraction
synced 2024-10-22 11:06:00 +02:00
11 lines
293 B
PHP
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);
|
|
}
|
|
|
|
} |