From 6545745e88677afb4637bad127c4926120882e99 Mon Sep 17 00:00:00 2001 From: Mohamed Cherif Bouchelaghem Date: Mon, 11 Jul 2016 13:43:55 +0100 Subject: [PATCH] configure Codeception::Scpecify to not deep clone properties by default (#57) --- tests/codeception/_bootstrap.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/codeception/_bootstrap.php b/tests/codeception/_bootstrap.php index 755029e..f24347f 100644 --- a/tests/codeception/_bootstrap.php +++ b/tests/codeception/_bootstrap.php @@ -14,3 +14,10 @@ $_SERVER['SERVER_NAME'] = parse_url(\Codeception\Configuration::config()['config $_SERVER['SERVER_PORT'] = parse_url(\Codeception\Configuration::config()['config']['test_entry_url'], PHP_URL_PORT) ?: '80'; Yii::setAlias('@tests', dirname(__DIR__)); + +/** + * this configure codeception specify to not deep clone objects properties + * it can be configure localy in your tests + * @see https://github.com/Codeception/Specify/tree/master/docs + */ +\Codeception\Specify\Config::setDeepClone(false);