cii-text-analysis/vendor/yooper/php-text-analysis/tests/TextAnalysis/Extracts/DateExtractTest.php

21 lines
449 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?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'));
}
}