|
@@ -1,5 +1,5 @@
|
1
|
1
|
<?php
|
2
|
|
-use Luticate\Utils\Dbo\LuDateDateTime;
|
|
2
|
+use Luticate\Utils\Dbo\LuDateTimeDbo;
|
3
|
3
|
use Luticate\Utils\Dbo\LuDboDeserializeException;
|
4
|
4
|
|
5
|
5
|
/**
|
|
@@ -12,19 +12,19 @@ class LuDateTimeDboTest extends \PHPUnit_Framework_TestCase
|
12
|
12
|
{
|
13
|
13
|
public function testDateTime()
|
14
|
14
|
{
|
15
|
|
- $dbo = LuDateDateTime::jsonDeserialize('2016-12-24 14:42:24');
|
|
15
|
+ $dbo = LuDateTimeDbo::jsonDeserialize('2016-12-24 14:42:24');
|
16
|
16
|
$this->assertSame('2016-12-24 14:42:24', $dbo->getDateTime()->__toString());
|
17
|
17
|
}
|
18
|
18
|
|
19
|
19
|
public function testNull()
|
20
|
20
|
{
|
21
|
|
- $dbo = LuDateDateTime::jsonDeserialize(null);
|
|
21
|
+ $dbo = LuDateTimeDbo::jsonDeserialize(null);
|
22
|
22
|
$this->assertSame(null, $dbo->getDateTime());
|
23
|
23
|
}
|
24
|
24
|
|
25
|
25
|
public function testInvalid()
|
26
|
26
|
{
|
27
|
27
|
$this->expectException(LuDboDeserializeException::class);
|
28
|
|
- LuDateDateTime::jsonDeserialize('my date');
|
|
28
|
+ LuDateTimeDbo::jsonDeserialize('my date');
|
29
|
29
|
}
|
30
|
30
|
}
|