Factory example

/** * @var \SebastianBergmann\Comparator\Factory */
  protected $factory;

  /** * {@inheritdoc} */
  protected function setUp(): void {
    parent::setUp();
    $this->factory = new Factory();
    $this->comparator = new MarkupInterfaceComparator();
    $this->comparator->setFactory($this->factory);
  }

  /** * Provides test data for the comparator. * * @return array * Each array entry has: * - test expected value, * - test actual value, * - a bool indicating the expected return value of ::accepts, * - a value indicating the expected result of ::assertEquals, TRUE if * comparison should match, FALSE if error, or a class name of an object * thrown. */
Home | Imprint | This part of the site doesn't use cookies.