summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/sizeof_object1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/sizeof_object1.phpt')
-rw-r--r--ext/standard/tests/array/sizeof_object1.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/tests/array/sizeof_object1.phpt b/ext/standard/tests/array/sizeof_object1.phpt
index 4705996054..f734887a59 100644
--- a/ext/standard/tests/array/sizeof_object1.phpt
+++ b/ext/standard/tests/array/sizeof_object1.phpt
@@ -1,7 +1,7 @@
--TEST--
Test sizeof() function : object functionality - object with Countable interface
--SKIPIF--
-<?php
+<?php
// Skip the test case if Standard PHP Library(spl) is not installed
if( !extension_loaded('spl'))
{
@@ -11,7 +11,7 @@ Test sizeof() function : object functionality - object with Countable interface
--FILE--
<?php
/* Prototype : int sizeof($mixed var[, int $mode])
- * Description: Counts an elements in an array. If Standard PHP library is installed,
+ * Description: Counts an elements in an array. If Standard PHP library is installed,
* it will return the properties of an object.
* Source code: ext/standard/basic_functions.c
* Alias to functions: count()
@@ -20,12 +20,12 @@ Test sizeof() function : object functionality - object with Countable interface
echo "*** Testing sizeof() : object functionality ***\n";
echo "-- Testing sizeof() with an object which implements Countable interface --\n";
-class sizeof_class implements Countable
+class sizeof_class implements Countable
{
public $member1;
private $member2;
protected $member3;
-
+
public function count()
{
return 3; // return the count of member variables in the object