From b25960786d6177c3857021a9665674cb1e51d183 Mon Sep 17 00:00:00 2001 From: Stefan Siegl Date: Sat, 29 Nov 2014 20:23:23 +0000 Subject: [PATCH] Remove count() echo statements These cause the test to fail on old v8 versions like 3.24.10 since the Array.prototype.push implementation calls count() twice with that version (causing a second echo-line that makes the test fail). --- tests/array_access_002.phpt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/array_access_002.phpt b/tests/array_access_002.phpt index 1974eaa..dde425c 100644 --- a/tests/array_access_002.phpt +++ b/tests/array_access_002.phpt @@ -28,7 +28,6 @@ class MyArray implements ArrayAccess, Countable { } public function count() { - echo 'count() = ', count($this->data), "\n"; return count($this->data); } } @@ -51,11 +50,8 @@ $v8->executeString('var_dump(PHP.myarr.join(","));'); ?> ===EOF=== --EXPECT-- -count() = 3 set[3] = 23 -count() = 4 int(4) int(23) -count() = 4 string(16) "one,two,three,23" ===EOF===