Sfoglia il codice sorgente

configure Codeception::Scpecify to not deep clone properties by default (#57)

Mohamed Cherif Bouchelaghem 9 anni fa
parent
commit
6545745e88
1 ha cambiato i file con 7 aggiunte e 0 eliminazioni
  1. 7 0
      tests/codeception/_bootstrap.php

+ 7 - 0
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';
 $_SERVER['SERVER_PORT'] =  parse_url(\Codeception\Configuration::config()['config']['test_entry_url'], PHP_URL_PORT) ?: '80';
 
 
 Yii::setAlias('@tests', dirname(__DIR__));
 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);