You are here

public function ValueExporterTest::testDateTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-kernel/Tests/DataCollector/Util/ValueExporterTest.php \Symfony\Component\HttpKernel\Tests\DataCollector\Util\ValueExporterTest::testDateTime()

File

vendor/symfony/http-kernel/Tests/DataCollector/Util/ValueExporterTest.php, line 28

Class

ValueExporterTest

Namespace

Symfony\Component\HttpKernel\Tests\DataCollector\Util

Code

public function testDateTime() {
  $dateTime = new \DateTime('2014-06-10 07:35:40', new \DateTimeZone('UTC'));
  $this
    ->assertSame('Object(DateTime) - 2014-06-10T07:35:40+0000', $this->valueExporter
    ->exportValue($dateTime));
}