You are here

public function ExceptionComparatorTest::assertEqualsFailsProvider in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/sebastian/comparator/tests/ExceptionComparatorTest.php \SebastianBergmann\Comparator\ExceptionComparatorTest::assertEqualsFailsProvider()

File

vendor/sebastian/comparator/tests/ExceptionComparatorTest.php, line 64

Class

ExceptionComparatorTest
@coversDefaultClass SebastianBergmann\Comparator\ExceptionComparator

Namespace

SebastianBergmann\Comparator

Code

public function assertEqualsFailsProvider() {
  $typeMessage = 'not instance of expected class';
  $equalMessage = 'Failed asserting that two objects are equal.';
  $exception1 = new Exception('Error', 100);
  $exception2 = new Exception('Error', 101);
  $exception3 = new Exception('Errors', 101);
  $exception4 = new RunTimeException('Error', 100);
  $exception5 = new RunTimeException('Error', 101);
  return array(
    array(
      $exception1,
      $exception2,
      $equalMessage,
    ),
    array(
      $exception1,
      $exception3,
      $equalMessage,
    ),
    array(
      $exception1,
      $exception4,
      $typeMessage,
    ),
    array(
      $exception2,
      $exception3,
      $equalMessage,
    ),
    array(
      $exception4,
      $exception5,
      $equalMessage,
    ),
  );
}