From 397dab70592434f41c8d48c727df059682f0758d Mon Sep 17 00:00:00 2001 From: Mattia Astorino Date: Sun, 11 Feb 2018 12:54:55 +0100 Subject: [PATCH] chore: update tests --- test/source.php | 55 ++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/test/source.php b/test/source.php index 387254a..c20c54a 100644 --- a/test/source.php +++ b/test/source.php @@ -1,4 +1,57 @@ edible = $edible; + $this->color = $color; + } + + function is_edible() + { + return $this->edible; + } + + function what_color() + { + return $this->color; + } + +} // end of class Vegetable + +// extends the base class +class Spinach extends Vegetable { + + + var $cooked = false; + + function Spinach() + { + $this->Vegetable(true, "green"); + } + + function cook_it() + { + $this->cooked = true; + } + + function is_cooked() + { + return $this->cooked; + } + +} // end of class Spinach + +?> +