3 namespace Friendica\Test\src\Util;
5 use Friendica\Test\MockedTest;
6 use Friendica\Util\DateTimeFormat;
8 class DateTimeFormatTest extends MockedTest
10 public function dataYearMonth()
17 'validOneCharMonth' => [
21 'validTwoCharMonth' => [
53 * @dataProvider dataYearMonth
55 public function testIsYearMonth(string $input, bool $assert)
57 $dtFormat = new DateTimeFormat();
59 $this->assertEquals($assert, $dtFormat->isYearMonth($input));