You are here

FactorySpec.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 vendor/phpspec/prophecy/spec/Prophecy/Comparator/FactorySpec.php

File

vendor/phpspec/prophecy/spec/Prophecy/Comparator/FactorySpec.php
View source
<?php

namespace spec\Prophecy\Comparator;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class FactorySpec extends ObjectBehavior {
  function it_extends_Sebastian_Comparator_Factory() {
    $this
      ->shouldHaveType('SebastianBergmann\\Comparator\\Factory');
  }
  function it_should_have_ClosureComparator_registered() {
    $comparator = $this
      ->getInstance()
      ->getComparatorFor(function () {
    }, function () {
    });
    $comparator
      ->shouldHaveType('Prophecy\\Comparator\\ClosureComparator');
  }

}

Classes

Namesort descending Description
FactorySpec