summaryrefslogtreecommitdiff
path: root/tests/classes/ctor_dtor_inheritance.phpt
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
committerNikita Popov <nikita.ppv@gmail.com>2020-02-03 22:52:20 +0100
commitf8d795820e780a6322e054c26c581570613c14f0 (patch)
tree99d3ae01ce564752807341c5743863b4c92513f8 /tests/classes/ctor_dtor_inheritance.phpt
parentd2cb200e10ada6fa44c54a29292bb4665728fff0 (diff)
downloadphp-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz
Reindent phpt files
Diffstat (limited to 'tests/classes/ctor_dtor_inheritance.phpt')
-rw-r--r--tests/classes/ctor_dtor_inheritance.phpt50
1 files changed, 25 insertions, 25 deletions
diff --git a/tests/classes/ctor_dtor_inheritance.phpt b/tests/classes/ctor_dtor_inheritance.phpt
index 1f3d3483d0..bd1414c8b8 100644
--- a/tests/classes/ctor_dtor_inheritance.phpt
+++ b/tests/classes/ctor_dtor_inheritance.phpt
@@ -9,38 +9,38 @@ ZE2 A derived class can use the inherited constructor/destructor
// - base class constructors/destructors know the instantiated class name
class base {
- public $name;
+ public $name;
- function __construct() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- $this->name = 'base';
- print_r($this);
- }
+ function __construct() {
+ echo __CLASS__ . "::" . __FUNCTION__ . "\n";
+ $this->name = 'base';
+ print_r($this);
+ }
- function __destruct() {
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- print_r($this);
- }
+ function __destruct() {
+ echo __CLASS__ . "::" . __FUNCTION__ . "\n";
+ print_r($this);
+ }
}
class derived extends base {
- public $other;
+ public $other;
- function __construct() {
- $this->name = 'init';
- $this->other = 'other';
- print_r($this);
- parent::__construct();
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- $this->name = 'derived';
- print_r($this);
- }
+ function __construct() {
+ $this->name = 'init';
+ $this->other = 'other';
+ print_r($this);
+ parent::__construct();
+ echo __CLASS__ . "::" . __FUNCTION__ . "\n";
+ $this->name = 'derived';
+ print_r($this);
+ }
- function __destruct() {
- parent::__destruct();
- echo __CLASS__ . "::" . __FUNCTION__ . "\n";
- print_r($this);
- }
+ function __destruct() {
+ parent::__destruct();
+ echo __CLASS__ . "::" . __FUNCTION__ . "\n";
+ print_r($this);
+ }
}
echo "Testing class base\n";