mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-25 01:12:21 +03:00
17 lines
391 B
PHP
17 lines
391 B
PHP
<?php
|
|
|
|
namespace Tests\Unit\Helper;
|
|
|
|
use Tests\TestCase;
|
|
|
|
class ValidationHelperTest extends TestCase {
|
|
public function testValidateDateTimeReturnsTrueOnValidValue()
|
|
{
|
|
$this->assertTrue(validate_datetime(date('Y-m-d H:i:s')));
|
|
}
|
|
|
|
public function testValidateDateTimeReturnsFalseOnInvalidValue()
|
|
{
|
|
$this->assertFalse(validate_datetime('invalid'));
|
|
}
|
|
}
|