cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Extracts/DateExtractTest.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

20 lines
449 B
PHP

<?php
namespace Tests\TextAnalysis\Extracts;
use TextAnalysis\Extracts\DateExtract;
/**
* Test if date extraction is working
* @author yooper
*/
class DateExtractTest extends \PHPUnit\Framework\TestCase
{
public function testDate()
{
$extract = new DateExtract();
$this->assertFalse($extract->filter("no date in jan. set"));
$this->assertInstanceOf('DateTime', $extract->filter('jan. 12th 1999'));
}
}