protected function ClassMapGeneratorTest::assertEqualsNormalized

2 calls to ClassMapGeneratorTest::assertEqualsNormalized()
ClassMapGeneratorTest::testCreateMap in drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php
@dataProvider getTestCreateMapTests
ClassMapGeneratorTest::testCreateMapFinderSupport in drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php

File

drupal/core/vendor/symfony/class-loader/Symfony/Component/ClassLoader/Tests/ClassMapGeneratorTest.php, line 136

Class

ClassMapGeneratorTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

protected function assertEqualsNormalized($expected, $actual, $message = null) {
  foreach ($expected as $ns => $path) {
    $expected[$ns] = strtr($path, '\\', '/');
  }
  foreach ($actual as $ns => $path) {
    $actual[$ns] = strtr($path, '\\', '/');
  }
  $this
    ->assertEquals($expected, $actual, $message);
}