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