public function testLocaleDateTimeStringWithFormat() { $app = $this->getApp(); $handler = new TextHandler($app); $result = $handler->localeDateTime('2012-06-14 09:07:55', '%Y-%m-%d %H:%M'); $this->assertSame('2012-06-14 09:07', $result); }