Doctrine\Tests\OXM\Types\DateTimeTest::testDateTimeConvertsToPHPValue PHP Метод

testDateTimeConvertsToPHPValue() публичный Метод

    public function testDateTimeConvertsToPHPValue()
    {
        // Birthday of jwage and also birthday of Doctrine. Send him a present ;)
        $date = $this->_type->convertToPHPValue('1985-09-01 00:00:00');
        $this->assertInstanceOf('\\DateTime', $date);
        $this->assertEquals('1985-09-01 00:00:00', $date->format('Y-m-d H:i:s'));
    }