From 3cf3ad9c03eac2d55d9b413a37b492f1b66c9480 Mon Sep 17 00:00:00 2001 From: Zoe Slattery Date: Mon, 9 Jul 2007 13:18:03 +0000 Subject: [PATCH] array copy on write tests --- Zend/tests/array_append_COW.phpt | 22 ++++++++++++++++++++++ Zend/tests/array_unshift_COW.phpt | 22 ++++++++++++++++++++++ 2 files changed, 44 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..aacbe79e86 --- /dev/null +++ b/Zend/tests/array_append_COW.phpt @@ -0,0 +1,22 @@ +--TEST-- + Tests that array manipulation code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} +--UEXPECT-- +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..864fc29e33 --- /dev/null +++ b/Zend/tests/array_unshift_COW.phpt @@ -0,0 +1,22 @@ +--TEST-- + Tests that array unshift code is correctly dealing with copy on write and + splitting on reference. +--FILE-- + +--EXPECT-- +array(1) { + [0]=> + int(1) +} +--EXPECT-- +array(1) { + [0]=> + int(1) +} \ No newline at end of file -- 2.40.0