public static function Singleton::getInstance

2 calls to Singleton::getInstance()
Framework_TestCaseTest::testStaticAttributesBackupPost in drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php
Framework_TestCaseTest::testStaticAttributesBackupPre in drupal/core/vendor/phpunit/phpunit/Tests/Framework/TestCaseTest.php
@backupGlobals enabled @backupStaticAttributes enabled

File

drupal/core/vendor/phpunit/phpunit/Tests/_files/Singleton.php, line 14

Class

Singleton

Code

public static function getInstance() {
  if (self::$uniqueInstance === NULL) {
    self::$uniqueInstance = new Singleton();
  }
  return self::$uniqueInstance;
}