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

testDateTimeConvertsToXmlValue() public method

    public function testDateTimeConvertsToXmlValue()
    {
        $date = new \DateTime('1985-09-01 10:10:10+0200');
        $expected = '1985-09-01 10:10:10+0200';
        $actual = $this->_type->convertToXmlValue($date);
        $this->assertEquals($expected, $actual);
    }