* * 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:----Z6si89M6WDFRPeF2l7jhQLGvRo/hyjwS2oADH6lSbXTCxVyvCf8jBSB9zQOdiZ5SPOi2mHKPCOqxWK46ltFvL276H/z7NJpte0mZ/x5J8K8qPIKQWgrg1FA5WUrHQfgT8fSveRFq7q1uYHPlXXAeg72BnWeHN/d2OWF4dv/g2BIelBX39cKbbawFgx99VcQOVCDirKWlfznGKDnw4Uww+6lUWYMc29TIOxtcyr0x6gXtQxVsudbBISLk8HXrJBElzSwaxfRA82/xSQy2UVNY+kI23fFaRnssGzYk4ZPHQvV4WMNoKzG3MCn2iUX1FMVHjeTfZVm4UZyKD40Qr0Q2tsQmH2VDKWQCbtvH9o3dNWlE+7RkXmKR3idEqJ9aX5bSaNJzRW3bsS6rc+UfEGqgo4RR1MM/x93+NHM1yKQLL/NCq2ozEjb9BSozE9L1avbOzids66yF5KTVNkuB7frXk8zj+6UxDeQNaKFWq33Fsfz1O3goaMxt5DPNyBWXoJR5NxgvzM2U9snmX4niuhL02YQEyF8ACpSU40Y1rMXrWserCJ1qDtzVBGd5scOnihCXHl3GlnL7klO+lCxHwwzsKIjzAzzNJ7XaSjKznTTjA5yp3+GjqDr4zheZJHfi+eSIZEPEG7ej7abtBVTVwjT5UPIP99EFtzXehsoDX8LoJKk=----ATTACHMENT:----ODM0NjkxNDYyODY4NzQ2NiA4ODU3OTc5Njk4MTg0NTUxIDc1NzU5MTE2Mzk3NDUwNjE=