/** * Tests marshalling dates using the locale aware parser and custom format * * @return void */ public function testMarshalWithLocaleParsingWithFormat() { $this->type->useLocaleParser()->setLocaleFormat('dd MMM, y'); $expected = new Date('13-10-2013'); $result = $this->type->marshal('13 Oct, 2013'); $this->assertEquals($expected->format('Y-m-d'), $result->format('Y-m-d')); }