From 5d0ee5b518710ff03ec96fefa1ebdba907d612b0 Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Mon, 9 Jul 2007 13:23:37 +0000 Subject: [PATCH] array copy on write tests --- Zend/tests/array_append_COW.phpt | 17 +++++++++++++++++ Zend/tests/array_unshift_COW.phpt | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Zend/tests/array_append_COW.phpt create mode 100644 Zend/tests/array_unshift_COW.phpt diff --git a/Zend/tests/array_append_COW.phpt b/Zend/tests/array_append_COW.phpt new file mode 100644 index 0000000000..e6c9926931 --- /dev/null +++ b/Zend/tests/array_append_COW.phpt @@ -0,0 +1,17 @@ +--TEST-- + Tests that array manipulation code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} \ No newline at end of file diff --git a/Zend/tests/array_unshift_COW.phpt b/Zend/tests/array_unshift_COW.phpt new file mode 100644 index 0000000000..7c8beba3d9 --- /dev/null +++ b/Zend/tests/array_unshift_COW.phpt @@ -0,0 +1,17 @@ +--TEST-- + Tests that array unshift code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} \ No newline at end of file -- 2.50.1