You are here

class SingletonClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit-mock-objects/tests/_fixture/SingletonClass.php \SingletonClass

Hierarchy

Expanded class hierarchy of SingletonClass

2 string references to 'SingletonClass'
Framework_MockObject_GeneratorTest::testGetMockForSingletonWithReflectionSuccess in vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php
@requires PHP 5.4.0
Framework_MockObject_GeneratorTest::testGetMockForSingletonWithUnserializeFail in vendor/phpunit/phpunit-mock-objects/tests/GeneratorTest.php
Same as "testGetMockForSingletonWithReflectionSuccess", but we expect warning for PHP < 5.4.0 since PHPUnit will try to execute private __wakeup on unserialize

File

vendor/phpunit/phpunit-mock-objects/tests/_fixture/SingletonClass.php, line 3

View source
class SingletonClass {
  public static function getInstance() {
  }
  public function doSomething() {
  }
  protected function __construct() {
  }
  private final function __sleep() {
  }
  private final function __wakeup() {
  }
  private final function __clone() {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SingletonClass::doSomething public function
SingletonClass::getInstance public static function
SingletonClass::__clone final private function
SingletonClass::__construct protected function
SingletonClass::__sleep final private function
SingletonClass::__wakeup final private function