diff --git a/Library/ClassProperty.php b/Library/ClassProperty.php index 887a92094b..08b2391fbe 100644 --- a/Library/ClassProperty.php +++ b/Library/ClassProperty.php @@ -269,8 +269,18 @@ public function compile(CompilationContext $compilationContext) } if ($needLetStatementAdded) { - $statements[] = $letStatement; - $statementsBlock->setStatements($statements); + $newStatements = array(); + + /** + * Start from let statement + */ + $newStatements[] = $letStatement; + + foreach ($statements as $statement) { + $newStatements[] = $statement; + } + + $statementsBlock->setStatements($newStatements); $constructMethod->setStatementsBlock($statementsBlock); $compilationContext->classDefinition->getEventsManager()->dispatch('setMethod', array($constructMethod)); } diff --git a/ext/config.m4 b/ext/config.m4 index e980751d83..7c6a3814c2 100644 --- a/ext/config.m4 +++ b/ext/config.m4 @@ -85,6 +85,7 @@ if test "$PHP_TEST" = "yes"; then test/pregmatch.zep.c test/properties/extendspublicproperties.zep.c test/properties/privateproperties.zep.c + test/properties/propertyarray.zep.c test/properties/protectedproperties.zep.c test/properties/publicproperties.zep.c test/properties/staticprotectedproperties.zep.c diff --git a/ext/test.c b/ext/test.c index dc5fdf56c3..bb9744d758 100644 --- a/ext/test.c +++ b/ext/test.c @@ -110,6 +110,7 @@ zend_class_entry *test_pdostatement_ce; zend_class_entry *test_pregmatch_ce; zend_class_entry *test_properties_extendspublicproperties_ce; zend_class_entry *test_properties_privateproperties_ce; +zend_class_entry *test_properties_propertyarray_ce; zend_class_entry *test_properties_protectedproperties_ce; zend_class_entry *test_properties_staticprotectedproperties_ce; zend_class_entry *test_properties_staticpublicproperties_ce; @@ -385,6 +386,7 @@ static PHP_MINIT_FUNCTION(test) ZEPHIR_INIT(Test_Pregmatch); ZEPHIR_INIT(Test_Properties_ExtendsPublicProperties); ZEPHIR_INIT(Test_Properties_PrivateProperties); + ZEPHIR_INIT(Test_Properties_PropertyArray); ZEPHIR_INIT(Test_Properties_ProtectedProperties); ZEPHIR_INIT(Test_Properties_StaticProtectedProperties); ZEPHIR_INIT(Test_Properties_StaticPublicProperties); diff --git a/ext/test.h b/ext/test.h index 469afdb8d9..dbac014dfe 100644 --- a/ext/test.h +++ b/ext/test.h @@ -87,6 +87,7 @@ #include "test/pregmatch.zep.h" #include "test/properties/extendspublicproperties.zep.h" #include "test/properties/privateproperties.zep.h" +#include "test/properties/propertyarray.zep.h" #include "test/properties/protectedproperties.zep.h" #include "test/properties/publicproperties.zep.h" #include "test/properties/staticprotectedproperties.zep.h" diff --git a/ext/test/evaltest.c b/ext/test/evaltest.c deleted file mode 100644 index 689313b1e4..0000000000 --- a/ext/test/evaltest.c +++ /dev/null @@ -1,43 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/fcall.h" -#include "kernel/operators.h" -#include "kernel/memory.h" - - -ZEPHIR_INIT_CLASS(Test_EvalTest) { - - ZEPHIR_REGISTER_CLASS(Test, EvalTest, test, evaltest, test_evaltest_method_entry, 0); - - return SUCCESS; - -} - -PHP_METHOD(Test_EvalTest, evalCode) { - - zval *code_param = NULL; - zval *code = NULL; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &code_param); - - zephir_get_strval(code, code_param); - - - zephir_eval_php(code, return_value, "test/evaltest.zep:7" TSRMLS_CC); - RETURN_MM(); - -} - diff --git a/ext/test/evaltest.h b/ext/test/evaltest.h deleted file mode 100644 index ecddadb050..0000000000 --- a/ext/test/evaltest.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_evaltest_ce; - -ZEPHIR_INIT_CLASS(Test_EvalTest); - -PHP_METHOD(Test_EvalTest, evalCode); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_evaltest_evalcode, 0, 0, 1) - ZEND_ARG_INFO(0, code) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_evaltest_method_entry) { - PHP_ME(Test_EvalTest, evalCode, arginfo_test_evaltest_evalcode, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/exitdie.c b/ext/test/exitdie.c deleted file mode 100644 index 092b3c2741..0000000000 --- a/ext/test/exitdie.c +++ /dev/null @@ -1,85 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/operators.h" -#include "kernel/exit.h" -#include "kernel/memory.h" - - -ZEPHIR_INIT_CLASS(Test_ExitDie) { - - ZEPHIR_REGISTER_CLASS(Test, ExitDie, test, exitdie, test_exitdie_method_entry, 0); - - return SUCCESS; - -} - -PHP_METHOD(Test_ExitDie, testExit) { - - zend_bool _0; - zval *param = NULL; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, ¶m); - - if (!param) { - ZEPHIR_INIT_VAR(param); - ZVAL_STRING(param, "", 1); - } - - - _0 = Z_TYPE_P(param) == IS_STRING; - if (_0) { - _0 = ZEPHIR_IS_STRING(param, ""); - } - if (_0) { - zephir_exit_empty(); - ZEPHIR_MM_RESTORE(); - } else { - zephir_exit(param); - ZEPHIR_MM_RESTORE(); - } - ZEPHIR_MM_RESTORE(); - -} - -PHP_METHOD(Test_ExitDie, testDie) { - - zend_bool _0; - zval *param = NULL; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 0, 1, ¶m); - - if (!param) { - ZEPHIR_INIT_VAR(param); - ZVAL_STRING(param, "", 1); - } - - - _0 = Z_TYPE_P(param) == IS_STRING; - if (_0) { - _0 = ZEPHIR_IS_STRING(param, ""); - } - if (_0) { - zephir_exit_empty(); - ZEPHIR_MM_RESTORE(); - } else { - zephir_exit(param); - ZEPHIR_MM_RESTORE(); - } - ZEPHIR_MM_RESTORE(); - -} - diff --git a/ext/test/exitdie.h b/ext/test/exitdie.h deleted file mode 100644 index ac0bdaad6c..0000000000 --- a/ext/test/exitdie.h +++ /dev/null @@ -1,21 +0,0 @@ - -extern zend_class_entry *test_exitdie_ce; - -ZEPHIR_INIT_CLASS(Test_ExitDie); - -PHP_METHOD(Test_ExitDie, testExit); -PHP_METHOD(Test_ExitDie, testDie); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exitdie_testexit, 0, 0, 0) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_exitdie_testdie, 0, 0, 0) - ZEND_ARG_INFO(0, param) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_exitdie_method_entry) { - PHP_ME(Test_ExitDie, testExit, arginfo_test_exitdie_testexit, ZEND_ACC_PUBLIC) - PHP_ME(Test_ExitDie, testDie, arginfo_test_exitdie_testdie, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/internalclasses.zep.c b/ext/test/internalclasses.zep.c index d068cd056c..1a7196c5c8 100644 --- a/ext/test/internalclasses.zep.c +++ b/ext/test/internalclasses.zep.c @@ -31,7 +31,7 @@ PHP_METHOD(Test_InternalClasses, testStaticCall) { ZEPHIR_MM_GROW(); - phalcon_phalcon_di = zend_fetch_class(SL("\\Phalcon\\Di"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); + phalcon_phalcon_di = zend_fetch_class(SL("\\Phalcon\\DI"), ZEND_FETCH_CLASS_AUTO TSRMLS_CC); ZEPHIR_RETURN_CALL_CE_STATIC(phalcon_phalcon_di, "getdefault", NULL); zephir_check_call_status(); RETURN_MM(); diff --git a/ext/test/issues.c b/ext/test/issues.c deleted file mode 100644 index 6e6d299503..0000000000 --- a/ext/test/issues.c +++ /dev/null @@ -1,65 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/memory.h" -#include "kernel/fcall.h" - - -ZEPHIR_INIT_CLASS(Test_Issues) { - - ZEPHIR_REGISTER_CLASS(Test, Issues, test, issues, test_issues_method_entry, 0); - - zend_declare_property_null(test_issues_ce, SL("adapter"), ZEND_ACC_PROTECTED TSRMLS_CC); - - return SUCCESS; - -} - -PHP_METHOD(Test_Issues, setAdapter) { - - zval *adapter; - - zephir_fetch_params(0, 1, 0, &adapter); - - - - zephir_update_property_this(this_ptr, SL("adapter"), adapter TSRMLS_CC); - -} - -PHP_METHOD(Test_Issues, someMethod) { - - int ZEPHIR_LAST_CALL_STATUS; - zval *methodName, *_0; - - ZEPHIR_MM_GROW(); - zephir_fetch_params(1, 1, 0, &methodName); - - - - _0 = zephir_fetch_nproperty_this(this_ptr, SL("adapter"), PH_NOISY_CC); - ZEPHIR_RETURN_CALL_METHOD(_0, Z_TYPE_P(methodName) == IS_STRING ? Z_STRVAL_P(methodName) : "", NULL); - zephir_check_call_status(); - RETURN_MM(); - -} - -PHP_METHOD(Test_Issues, test) { - - - php_printf("test"); - -} - diff --git a/ext/test/issues.h b/ext/test/issues.h deleted file mode 100644 index 2fe94f43d4..0000000000 --- a/ext/test/issues.h +++ /dev/null @@ -1,23 +0,0 @@ - -extern zend_class_entry *test_issues_ce; - -ZEPHIR_INIT_CLASS(Test_Issues); - -PHP_METHOD(Test_Issues, setAdapter); -PHP_METHOD(Test_Issues, someMethod); -PHP_METHOD(Test_Issues, test); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issues_setadapter, 0, 0, 1) - ZEND_ARG_INFO(0, adapter) -ZEND_END_ARG_INFO() - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_issues_somemethod, 0, 0, 1) - ZEND_ARG_INFO(0, methodName) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_issues_method_entry) { - PHP_ME(Test_Issues, setAdapter, arginfo_test_issues_setadapter, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issues, someMethod, arginfo_test_issues_somemethod, ZEND_ACC_PUBLIC) - PHP_ME(Test_Issues, test, NULL, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/test.zep.c b/ext/test/oo/test.zep.c deleted file mode 100644 index fdb68e9a23..0000000000 --- a/ext/test/oo/test.zep.c +++ /dev/null @@ -1,46 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/exception.h" -#include "kernel/memory.h" - - -/** - * Arithmetic operations - */ -ZEPHIR_INIT_CLASS(Test_Oo_Test) { - - ZEPHIR_REGISTER_CLASS(Test\\Oo, Test, test, oo_test, test_oo_test_method_entry, 0); - - zend_class_implements(test_oo_test_ce TSRMLS_CC, 1, test_oo_testinterface_ce); - return SUCCESS; - -} - -PHP_METHOD(Test_Oo_Test, setParam) { - - zval *param; - - zephir_fetch_params(0, 1, 0, ¶m); - - - - if (!(zephir_is_instance_of(param, SL("Param") TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(spl_ce_InvalidArgumentException, "Parameter 'param' must be an instance of 'Param'", "", 0); - return; - } - -} - diff --git a/ext/test/oo/test.zep.h b/ext/test/oo/test.zep.h deleted file mode 100644 index 0dba8636e0..0000000000 --- a/ext/test/oo/test.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_oo_test_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_Test); - -PHP_METHOD(Test_Oo_Test, setParam); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_test_setparam, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, param, "Param",0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_test_method_entry) { - PHP_ME(Test_Oo_Test, setParam, arginfo_test_oo_test_setparam, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/ext/test/oo/testinterface.zep.c b/ext/test/oo/testinterface.zep.c deleted file mode 100644 index ebb7b5f17a..0000000000 --- a/ext/test/oo/testinterface.zep.c +++ /dev/null @@ -1,27 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../../ext_config.h" -#endif - -#include -#include "../../php_ext.h" -#include "../../ext.h" - -#include - -#include "kernel/main.h" - - -/** - * Arithmetic operations - */ -ZEPHIR_INIT_CLASS(Test_Oo_TestInterface) { - - ZEPHIR_REGISTER_INTERFACE(Test\\Oo, TestInterface, test, oo_testinterface, test_oo_testinterface_method_entry); - - return SUCCESS; - -} - -ZEPHIR_DOC_METHOD(Test_Oo_TestInterface, setParam); - diff --git a/ext/test/oo/testinterface.zep.h b/ext/test/oo/testinterface.zep.h deleted file mode 100644 index c07fa3525f..0000000000 --- a/ext/test/oo/testinterface.zep.h +++ /dev/null @@ -1,13 +0,0 @@ - -extern zend_class_entry *test_oo_testinterface_ce; - -ZEPHIR_INIT_CLASS(Test_Oo_TestInterface); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_oo_testinterface_setparam, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, param, "Param",0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_oo_testinterface_method_entry) { - PHP_ABSTRACT_ME(Test_Oo_TestInterface, setParam, arginfo_test_oo_testinterface_setparam) - PHP_FE_END -}; diff --git a/ext/test/properties/propertyarray.zep.c b/ext/test/properties/propertyarray.zep.c new file mode 100644 index 0000000000..0ed46600e3 --- /dev/null +++ b/ext/test/properties/propertyarray.zep.c @@ -0,0 +1,71 @@ + +#ifdef HAVE_CONFIG_H +#include "../../ext_config.h" +#endif + +#include +#include "../../php_ext.h" +#include "../../ext.h" + +#include +#include +#include + +#include "kernel/main.h" +#include "kernel/memory.h" +#include "kernel/array.h" +#include "kernel/object.h" + +ZEPHIR_INIT_CLASS(Test_Properties_PropertyArray) { + + ZEPHIR_REGISTER_CLASS(Test\\Properties, PropertyArray, test, properties_propertyarray, test_properties_propertyarray_method_entry, 0); + + /** + * This is a public property with an initial empty-array value + */ + zend_declare_property_null(test_properties_propertyarray_ce, SL("someEmptyArray"), ZEND_ACC_PUBLIC TSRMLS_CC); + + /** + * This is a public property with an initial array value + */ + zend_declare_property_null(test_properties_propertyarray_ce, SL("someArray"), ZEND_ACC_PUBLIC TSRMLS_CC); + + return SUCCESS; + +} + +PHP_METHOD(Test_Properties_PropertyArray, __construct) { + + zval *_1, *_3; + zval *_0, *_2; + + ZEPHIR_MM_GROW(); + + ZEPHIR_INIT_VAR(_0); + array_init_size(_0, 7); + ZEPHIR_INIT_VAR(_1); + ZVAL_LONG(_1, 1); + zephir_array_fast_append(_0, _1); + ZEPHIR_INIT_BNVAR(_1); + ZVAL_LONG(_1, 2); + zephir_array_fast_append(_0, _1); + ZEPHIR_INIT_BNVAR(_1); + ZVAL_LONG(_1, 3); + zephir_array_fast_append(_0, _1); + ZEPHIR_INIT_BNVAR(_1); + ZVAL_LONG(_1, 4); + zephir_array_fast_append(_0, _1); + zephir_update_property_this(this_ptr, SL("someArray"), _0 TSRMLS_CC); + ZEPHIR_INIT_BNVAR(_1); + array_init(_1); + zephir_update_property_this(this_ptr, SL("someEmptyArray"), _1 TSRMLS_CC); + ZEPHIR_INIT_VAR(_2); + array_init_size(_2, 2); + ZEPHIR_INIT_VAR(_3); + ZVAL_LONG(_3, 1); + zephir_array_fast_append(_2, _3); + zephir_update_property_this(this_ptr, SL("someArray"), _2 TSRMLS_CC); + ZEPHIR_MM_RESTORE(); + +} + diff --git a/ext/test/properties/propertyarray.zep.h b/ext/test/properties/propertyarray.zep.h new file mode 100644 index 0000000000..b2ec568ef6 --- /dev/null +++ b/ext/test/properties/propertyarray.zep.h @@ -0,0 +1,11 @@ + +extern zend_class_entry *test_properties_propertyarray_ce; + +ZEPHIR_INIT_CLASS(Test_Properties_PropertyArray); + +PHP_METHOD(Test_Properties_PropertyArray, __construct); + +ZEPHIR_INIT_FUNCS(test_properties_propertyarray_method_entry) { + PHP_ME(Test_Properties_PropertyArray, __construct, NULL, ZEND_ACC_PUBLIC|ZEND_ACC_CTOR) + PHP_FE_END +}; diff --git a/ext/test/properties/publicproperties.zep.c b/ext/test/properties/publicproperties.zep.c index 647623f3b7..9c56135f46 100644 --- a/ext/test/properties/publicproperties.zep.c +++ b/ext/test/properties/publicproperties.zep.c @@ -94,28 +94,28 @@ PHP_METHOD(Test_Properties_PublicProperties, test394Issue) { PHP_METHOD(Test_Properties_PublicProperties, __construct) { zval *_1; - zval *_0, *_2; + zval *_0; ZEPHIR_MM_GROW(); ZEPHIR_INIT_VAR(_0); - array_init(_0); - zephir_update_property_this(this_ptr, SL("someEmptyArray"), _0 TSRMLS_CC); + array_init_size(_0, 7); ZEPHIR_INIT_VAR(_1); - array_init_size(_1, 7); - ZEPHIR_INIT_VAR(_2); - ZVAL_LONG(_2, 1); - zephir_array_fast_append(_1, _2); - ZEPHIR_INIT_BNVAR(_2); - ZVAL_LONG(_2, 2); - zephir_array_fast_append(_1, _2); - ZEPHIR_INIT_BNVAR(_2); - ZVAL_LONG(_2, 3); - zephir_array_fast_append(_1, _2); - ZEPHIR_INIT_BNVAR(_2); - ZVAL_LONG(_2, 4); - zephir_array_fast_append(_1, _2); - zephir_update_property_this(this_ptr, SL("someArray"), _1 TSRMLS_CC); + ZVAL_LONG(_1, 1); + zephir_array_fast_append(_0, _1); + ZEPHIR_INIT_BNVAR(_1); + ZVAL_LONG(_1, 2); + zephir_array_fast_append(_0, _1); + ZEPHIR_INIT_BNVAR(_1); + ZVAL_LONG(_1, 3); + zephir_array_fast_append(_0, _1); + ZEPHIR_INIT_BNVAR(_1); + ZVAL_LONG(_1, 4); + zephir_array_fast_append(_0, _1); + zephir_update_property_this(this_ptr, SL("someArray"), _0 TSRMLS_CC); + ZEPHIR_INIT_BNVAR(_1); + array_init(_1); + zephir_update_property_this(this_ptr, SL("someEmptyArray"), _1 TSRMLS_CC); ZEPHIR_MM_RESTORE(); } diff --git a/ext/test/test.zep.c b/ext/test/test.zep.c deleted file mode 100644 index fa40e2346a..0000000000 --- a/ext/test/test.zep.c +++ /dev/null @@ -1,46 +0,0 @@ - -#ifdef HAVE_CONFIG_H -#include "../ext_config.h" -#endif - -#include -#include "../php_ext.h" -#include "../ext.h" - -#include -#include -#include - -#include "kernel/main.h" -#include "kernel/object.h" -#include "kernel/exception.h" -#include "kernel/memory.h" - - -/** - * Arithmetic operations - */ -ZEPHIR_INIT_CLASS(Test_Test) { - - ZEPHIR_REGISTER_CLASS(Test, Test, test, test, test_test_method_entry, 0); - - zend_class_implements(test_test_ce TSRMLS_CC, 1, test_testinterface_ce); - return SUCCESS; - -} - -PHP_METHOD(Test_Test, setParam) { - - zval *param; - - zephir_fetch_params(0, 1, 0, ¶m); - - - - if (!(zephir_is_instance_of(param, SL("Param") TSRMLS_CC))) { - ZEPHIR_THROW_EXCEPTION_DEBUG_STRW(spl_ce_InvalidArgumentException, "Parameter 'param' must be an instance of 'Param'", "", 0); - return; - } - -} - diff --git a/ext/test/test.zep.h b/ext/test/test.zep.h deleted file mode 100644 index 0cb26f4998..0000000000 --- a/ext/test/test.zep.h +++ /dev/null @@ -1,15 +0,0 @@ - -extern zend_class_entry *test_test_ce; - -ZEPHIR_INIT_CLASS(Test_Test); - -PHP_METHOD(Test_Test, setParam); - -ZEND_BEGIN_ARG_INFO_EX(arginfo_test_test_setparam, 0, 0, 1) - ZEND_ARG_OBJ_INFO(0, param, "Param",0) -ZEND_END_ARG_INFO() - -ZEPHIR_INIT_FUNCS(test_test_method_entry) { - PHP_ME(Test_Test, setParam, arginfo_test_test_setparam, ZEND_ACC_PUBLIC) - PHP_FE_END -}; diff --git a/test/properties/propertyarray.zep b/test/properties/propertyarray.zep new file mode 100644 index 0000000000..870205ac89 --- /dev/null +++ b/test/properties/propertyarray.zep @@ -0,0 +1,23 @@ + +namespace Test\Properties; + +/** + * @link https://github.com/phalcon/zephir/issues/520 + */ +class PropertyArray +{ + /** + * This is a public property with an initial empty-array value + */ + public someEmptyArray = []; + + /** + * This is a public property with an initial array value + */ + public someArray = [1, 2, 3, 4]; + + public function __construct() + { + let this->someArray = [1]; + } +} \ No newline at end of file diff --git a/unit-tests/Extension/Properties/PropertyArrayTest.php b/unit-tests/Extension/Properties/PropertyArrayTest.php new file mode 100644 index 0000000000..850f2271a4 --- /dev/null +++ b/unit-tests/Extension/Properties/PropertyArrayTest.php @@ -0,0 +1,31 @@ +assertSame(array(1), $t->someArray); + } +}