Bolt\Tests\Twig\TextHandlerTest::testLocaleDateTimeCdo PHP Method

testLocaleDateTimeCdo() public method

    public function testLocaleDateTimeCdo()
    {
        $this->markTestSkipped('Mock of setlocale not working on a long running test.');
        $app = $this->getApp();
        $this->php->expects($this->once())->method('setlocale')->will($this->returnValue(false));
        $logger = $this->getMockMonolog();
        $logger->expects($this->once())->method('error');
        $app['logger.system'] = $logger;
        $handler = new TextHandler($app);
        $result = $handler->localeDateTime('2012-06-14 09:07:55', '%B %e, %Y %H:%M');
        $this->assertSame('2012-06-14 09:07:55', $result);
    }