From: Raphaƫl Gertz Date: Sat, 15 Sep 2018 10:14:33 +0000 (+0200) Subject: Add new cloning test X-Git-Url: https://git.rapsys.eu/bbcode/commitdiff_plain/ce9c1a4bde38195ec32f7cd10ac4196f1d2a125d?ds=sidebyside Add new cloning test --- diff --git a/test.php b/test.php index 4e9f290..a6aa3a6 100644 --- a/test.php +++ b/test.php @@ -53,7 +53,6 @@ if (extension_loaded($module)) { ], BBCode::REMOVE_EMPTY ); - var_dump($obj); $obj2 = new $module( [ '' => [ @@ -136,8 +135,12 @@ if (extension_loaded($module)) { ); $obj3 = null; unset($obj2); - $obj2 = clone $obj; - #var_dump(clone $obj); + var_dump($obj2 = clone $obj); + var_dump($obj3 = clone $obj); + var_dump($obj4 = clone $obj); + var_dump($obj5 = clone $obj); + var_dump($obj6 = clone $obj); + var_dump($obj2 = clone $obj); //var_dump(new $module(BBCode::TYPE_ARG, 'tutu')); exit; //$str = $function($module);