summaryrefslogtreecommitdiff
path: root/ext/standard/tests/array/array_fill_object.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/tests/array/array_fill_object.phpt')
-rw-r--r--ext/standard/tests/array/array_fill_object.phpt20
1 files changed, 10 insertions, 10 deletions
diff --git a/ext/standard/tests/array/array_fill_object.phpt b/ext/standard/tests/array/array_fill_object.phpt
index aa1db044cc..c784b54415 100644
--- a/ext/standard/tests/array/array_fill_object.phpt
+++ b/ext/standard/tests/array/array_fill_object.phpt
@@ -3,7 +3,7 @@ Test array_fill() function : usage variations - various object values for 'val'
--FILE--
<?php
/* Prototype : array array_fill(int $start_key, int $num, mixed $val)
- * Description: Create an array containing num elements starting with index start_key each initialized to val
+ * Description: Create an array containing num elements starting with index start_key each initialized to val
* Source code: ext/standard/array.c
*/
@@ -13,7 +13,7 @@ Test array_fill() function : usage variations - various object values for 'val'
echo "*** Testing array_fill() : usage variations ***\n";
-// Initialise function arguments not being substituted
+// Initialise function arguments not being substituted
$start_key = 0;
$num = 2;
@@ -22,7 +22,7 @@ class Test
{
}
-//class with public member, static member , constant and consturctor to initialize the public member
+//class with public member, static member , constant and consturctor to initialize the public member
class Test1
{
const test1_constant = "test1";
@@ -78,14 +78,14 @@ class Child_test2 extends Test2
}
}
-// class with protected member, static member, constant and consturctor to initialize the protected member
+// class with protected member, static member, constant and consturctor to initialize the protected member
class Test3
{
const test3_constant = "test3";
public static $test3_static = 0;
protected $member1;
var $var1 = 30;
- var $var2;
+ var $var2;
function __construct($value1 , $value2)
{
@@ -127,7 +127,7 @@ class Test4
class Child_test4 extends Test4
{
var $var1;
-
+
function __construct($value1 , $value2 , $value3 , $value4)
{
parent::__construct($value1 , $value2 , $value3);
@@ -135,14 +135,14 @@ class Child_test4 extends Test4
}
}
-// abstract class with public, private, protected members
+// abstract class with public, private, protected members
abstract class AbstractClass
{
public $member1;
private $member2;
protected $member3;
var $var1 = 30;
-
+
abstract protected function display();
}
@@ -173,7 +173,7 @@ class Template1 implements iTemplate
//array of object values for 'val' argument
$objects = array(
-
+
/* 1 */ new Test(),
new Test1(100 , 101),
new Child_test1(100 , 101 , 102),
@@ -187,7 +187,7 @@ $objects = array(
/* 11 */ new Template1()
);
-// loop through each element of the array for 'val' argument
+// loop through each element of the array for 'val' argument
// check the working of array_fill()
echo "--- Testing array_fill() with different object values for 'val' argument ---\n";
$counter = 1;