From 61374e5ddd285f9a125a52005ad7eaefd3585f02 Mon Sep 17 00:00:00 2001 From: valmat Date: Sat, 5 Apr 2014 22:00:55 +0600 Subject: add tests for HashMember --- tests/php/phpt/variables/019-HashMember-1.phpt | 27 +++++++++ tests/php/phpt/variables/020-HashMember-2.phpt | 76 ++++++++++++++++++++++++++ tests/php/phpt/variables/021-HashMember-3.phpt | 27 +++++++++ tests/php/phpt/variables/022-HashMember-4.phpt | 37 +++++++++++++ 4 files changed, 167 insertions(+) create mode 100644 tests/php/phpt/variables/019-HashMember-1.phpt create mode 100644 tests/php/phpt/variables/020-HashMember-2.phpt create mode 100644 tests/php/phpt/variables/021-HashMember-3.phpt create mode 100644 tests/php/phpt/variables/022-HashMember-4.phpt (limited to 'tests/php/phpt/variables') diff --git a/tests/php/phpt/variables/019-HashMember-1.phpt b/tests/php/phpt/variables/019-HashMember-1.phpt new file mode 100644 index 0000000..ebc126f --- /dev/null +++ b/tests/php/phpt/variables/019-HashMember-1.phpt @@ -0,0 +1,27 @@ +--TEST-- +get_complex_array (test HashMember #1) +--SKIPIF-- + +--FILEEOF-- + + array ( + 'key2' => 'val2', + 'key3' => 'val3', + ), +) \ No newline at end of file diff --git a/tests/php/phpt/variables/020-HashMember-2.phpt b/tests/php/phpt/variables/020-HashMember-2.phpt new file mode 100644 index 0000000..bb48d06 --- /dev/null +++ b/tests/php/phpt/variables/020-HashMember-2.phpt @@ -0,0 +1,76 @@ +--TEST-- +get_complex_array (test HashMember #2) +--SKIPIF-- + +--FILEEOF-- + + array ( + 'k3' => 'v1', + 'k2' => + array ( + 'k4' => 'v2', + ), + ), + 'k5' => + array ( + 1 => 'v3', + ), + 2 => + array ( + 'k6' => + array ( + 1 => 'v4', + ), + ), + 3 => + array ( + 4 => + array ( + 1 => 'v5', + 2 => + array ( + 5 => + array ( + 7 => + array ( + 11 => 'v5', + 'k' => 'v5', + ), + ), + ), + ), + ), + 'c' => + array ( + 0 => 'nested value', + 1 => NULL, + 2 => + array ( + ), + 3 => 'example', + ), +) \ No newline at end of file diff --git a/tests/php/phpt/variables/021-HashMember-3.phpt b/tests/php/phpt/variables/021-HashMember-3.phpt new file mode 100644 index 0000000..c6c517f --- /dev/null +++ b/tests/php/phpt/variables/021-HashMember-3.phpt @@ -0,0 +1,27 @@ +--TEST-- +get_complex_array (test HashMember #3) +--SKIPIF-- + +--FILEEOF-- + + array ( + 'key2' => 'val1-2', + 'key3' => 'val1-3', + ), +) \ No newline at end of file diff --git a/tests/php/phpt/variables/022-HashMember-4.phpt b/tests/php/phpt/variables/022-HashMember-4.phpt new file mode 100644 index 0000000..cbdc8b0 --- /dev/null +++ b/tests/php/phpt/variables/022-HashMember-4.phpt @@ -0,0 +1,37 @@ +--TEST-- +get_complex_array (test HashMember #4) +--SKIPIF-- + +--FILEEOF-- + + array ( + 'key1' => + array ( + 'key2' => + array ( + 'key3' => 'val', + ), + ), + ), + 1 => + array ( + 'str1' => 'example', + 'str2' => 'example', + ), + 2 => + array ( + 'str1' => + array ( + 'str2' => 'val1-2', + 'str3' => 'val1-3', + ), + ), +) \ No newline at end of file -- cgit v1.2.3