You are here

public function Factory::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/comparator/src/Factory.php \SebastianBergmann\Comparator\Factory::__construct()
  2. 8 vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php \Prophecy\Comparator\Factory::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/src/Factory.php \SebastianBergmann\Comparator\Factory::__construct()

Constructs a new factory.

1 call to Factory::__construct()
Factory::__construct in vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php
Constructs a new factory.
1 method overrides Factory::__construct()
Factory::__construct in vendor/phpspec/prophecy/src/Prophecy/Comparator/Factory.php
Constructs a new factory.

File

vendor/sebastian/comparator/src/Factory.php, line 31

Class

Factory
Factory for comparators which compare values for equality.

Namespace

SebastianBergmann\Comparator

Code

public function __construct() {
  $this
    ->register(new TypeComparator());
  $this
    ->register(new ScalarComparator());
  $this
    ->register(new NumericComparator());
  $this
    ->register(new DoubleComparator());
  $this
    ->register(new ArrayComparator());
  $this
    ->register(new ResourceComparator());
  $this
    ->register(new ObjectComparator());
  $this
    ->register(new ExceptionComparator());
  $this
    ->register(new SplObjectStorageComparator());
  $this
    ->register(new DOMNodeComparator());
  $this
    ->register(new MockObjectComparator());
  $this
    ->register(new DateTimeComparator());
}