[BUGFIX] Fix serializable object creation with PHP 5.6
[Packages/TYPO3.CMS.git] / typo3 / sysext / extbase / Tests / Unit / Object / Container / ContainerTest.php
index 7dd96a0..cfd5d02 100644 (file)
@@ -199,6 +199,14 @@ class ContainerTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
                $this->assertInstanceOf('t3lib_object_tests_c', $object);
        }
 
+       /**
+        * @test
+        */
+       public function getEmptyObjectReturnsInstanceOfClassImplementingSerializable() {
+               $object = $this->container->getEmptyObject('t3lib_object_tests_serializable');
+               $this->assertInstanceOf('t3lib_object_tests_serializable', $object);
+       }
+
        /**
         * @test
         */