--TEST-- PHP Spec test generated from ./lexical_structure/tokens/point2.php --FILE-- x = $x; $this->y = $y; ++self::$pointCount; } public function __destruct() { --self::$pointCount; echo "Inside " . __METHOD__ . ", pointCount now " . $this->getPointCount() . "\n"; } public function __clone() { ++self::$pointCount; echo "Inside " . __METHOD__ . ", point count = " . self::$pointCount . "\n"; } public function __toString() { return '(' . $this->x . ',' . $this->y . ')'; } } --EXPECT--