You are here

protected function ClassMapGeneratorTest::assertEqualsNormalized in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php \Symfony\Component\ClassLoader\Tests\ClassMapGeneratorTest::assertEqualsNormalized()
2 calls to ClassMapGeneratorTest::assertEqualsNormalized()
ClassMapGeneratorTest::testCreateMap in vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php
@dataProvider getTestCreateMapTests
ClassMapGeneratorTest::testCreateMapFinderSupport in vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php

File

vendor/symfony/class-loader/Tests/ClassMapGeneratorTest.php, line 140

Class

ClassMapGeneratorTest

Namespace

Symfony\Component\ClassLoader\Tests

Code

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