function FactoryProvider::getInstance
3 calls to FactoryProvider::getInstance()
- ExactValueToken::__construct in vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ExactValueToken.php - Initializes token.
- ObjectProphecy::__construct in vendor/
phpspec/ prophecy/ src/ Prophecy/ Prophecy/ ObjectProphecy.php - ObjectStateToken::__construct in vendor/
phpspec/ prophecy/ src/ Prophecy/ Argument/ Token/ ObjectStateToken.php - Initializes token.
File
-
vendor/
phpspec/ prophecy/ src/ Prophecy/ Comparator/ FactoryProvider.php, line 30
Class
- FactoryProvider
- Prophecy comparator factory.
Namespace
Prophecy\ComparatorCode
public static function getInstance() : Factory {
if (self::$instance === null) {
self::$instance = new Factory();
self::$instance->register(new ClosureComparator());
self::$instance->register(new ProphecyComparator());
}
return self::$instance;
}