public function _before() { // before is called per test so check existence before creating if (empty(self::$web)) { echo "new web"; self::$web = new Web(); //Stub::construct('Web');; } }