Doctrine\Tests\OXM\Types\DateTimeTzTest::testDateTimeConvertsToPHPValue PHP Method

testDateTimeConvertsToPHPValue() public method

    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+0200');
        $this->assertInstanceOf('\\DateTime', $date);
        $this->assertEquals('1985-09-01 00:00:00+0200', $date->format('Y-m-d H:i:sO'));
    }