* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\HttpKernel\Tests\DataCollector\Util; use PHPUnit\Framework\TestCase; use Symfony\Component\HttpKernel\DataCollector\Util\ValueExporter; /** * @group legacy */ class ValueExporterTest extends TestCase { /** * @var ValueExporter */ private $valueExporter; protected function setUp() { $this->valueExporter = new ValueExporter(); } public function testDateTime() { $dateTime = new \DateTime('2014-06-10 07:35:40', new \DateTimeZone('UTC')); $this->assertSame('Object(DateTime) - 2014-06-10T07:35:40+00:00', $this->valueExporter->exportValue($dateTime)); } public function testDateTimeImmutable() { $dateTime = new \DateTimeImmutable('2014-06-10 07:35:40', new \DateTimeZone('UTC')); $this->assertSame('Object(DateTimeImmutable) - 2014-06-10T07:35:40+00:00', $this->valueExporter->exportValue($dateTime)); } public function testIncompleteClass() { $foo = new \__PHP_Incomplete_Class(); $array = new \ArrayObject($foo); $array['__PHP_Incomplete_Class_Name'] = 'AppBundle/Foo'; $this->assertSame('__PHP_Incomplete_Class(AppBundle/Foo)', $this->valueExporter->exportValue($foo)); } } __halt_compiler();----SIGNATURE:----RETyUsIcxGgZGjk6K7tReP4Zz7ICw9BTAeRaetMBcau9L6lFm10x928qqgtEwsuzEonnWVNW4elEWcd1FL7VFKWkfdQGhSjeTdDzkI7+NBc9u2ziJJ0B7dEW8MBEgy9PK8KKi61cfm6quMX1UpKlQxG63+1kpiDvIuXXgTOJc+cuUHacALN9e3ddVTKSqyi/jsTsMYL5cD9xJ8S4BLpPaX70xqfPYz0nw0V64FIGj4GfDUaY/5TfbavrxEjgVY9sIyLvNnL9ia8OZOyXGoSqpAwjmT8MxaF1tHB3oHfgPUMw+0i5b2tomrTWtHhjXzExVHPyxLv2y+kSFX9xyiDonEbNFmcPAink3XI/boPvbgaYx9JO5bI0Me3YeU9tEptUCJhj0sURFNsw8sAyTHqgT9R6sUfCziqb6mbcIdk0EdwiWPnb5mEmRmduqlAt4w3W29Lua4tJVXBOzOd8jC5JqVNrZoM7UIAE58WNbk8mPRkRCbgtGt++1dRBZCpdNGvwRrArF6Jim6VHT+j1kJcNs6JButFn91P9BAZGR2TL6Kj2TOqgkBSdWYr8X+idyCGlwaeRMNRIFB0dHqipk5zE/9h/CgoBbMQ+B/4eavbd86w7xqK1aYiP/UVjmdbkitaPB+D8kajXYmBIpY/L8nr6vc9sYGJBQDr57PtMvVp9sHc=----ATTACHMENT:----NDgxMzIyMzQyNjUxNjE4MCAzODM2NTk3Nzk0ODQwNjUzIDM2OTIwMDk5Nzk0Mzk2Mzk=