You are here

public function FactoryTest::testGetComparatorFor in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/sebastian/comparator/tests/FactoryTest.php \SebastianBergmann\Comparator\FactoryTest::testGetComparatorFor()

@dataProvider instanceProvider @covers ::getComparatorFor @covers ::__construct

File

vendor/sebastian/comparator/tests/FactoryTest.php, line 71

Class

FactoryTest
@coversDefaultClass SebastianBergmann\Comparator\Factory

Namespace

SebastianBergmann\Comparator

Code

public function testGetComparatorFor($a, $b, $expected) {
  $factory = new Factory();
  $actual = $factory
    ->getComparatorFor($a, $b);
  $this
    ->assertInstanceOf($expected, $actual);
}