consistently use same types for strict comparisons
This commit is contained in:
parent
12b419e481
commit
afc11684e0
@ -675,7 +675,7 @@ class XmlFileLoaderTest extends TestCase
|
|||||||
sort($ids);
|
sort($ids);
|
||||||
$this->assertSame([Prototype\Foo::class, Prototype\Sub\Bar::class, 'service_container'], $ids);
|
$this->assertSame([Prototype\Foo::class, Prototype\Sub\Bar::class, 'service_container'], $ids);
|
||||||
|
|
||||||
$resources = $container->getResources();
|
$resources = array_map('strval', $container->getResources());
|
||||||
|
|
||||||
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
|
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
|
||||||
$this->assertContains((string) new FileResource($fixturesDir.'xml'.\DIRECTORY_SEPARATOR.'services_prototype.xml'), $resources);
|
$this->assertContains((string) new FileResource($fixturesDir.'xml'.\DIRECTORY_SEPARATOR.'services_prototype.xml'), $resources);
|
||||||
@ -693,7 +693,6 @@ class XmlFileLoaderTest extends TestCase
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
$this->assertContains((string) $globResource, $resources);
|
$this->assertContains((string) $globResource, $resources);
|
||||||
$resources = array_map('strval', $resources);
|
|
||||||
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo', $resources);
|
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo', $resources);
|
||||||
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar', $resources);
|
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar', $resources);
|
||||||
}
|
}
|
||||||
@ -708,7 +707,7 @@ class XmlFileLoaderTest extends TestCase
|
|||||||
sort($ids);
|
sort($ids);
|
||||||
$this->assertSame([Prototype\Foo::class, Prototype\Sub\Bar::class, 'service_container'], $ids);
|
$this->assertSame([Prototype\Foo::class, Prototype\Sub\Bar::class, 'service_container'], $ids);
|
||||||
|
|
||||||
$resources = $container->getResources();
|
$resources = array_map('strval', $container->getResources());
|
||||||
|
|
||||||
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
|
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
|
||||||
$this->assertContains((string) new FileResource($fixturesDir.'xml'.\DIRECTORY_SEPARATOR.'services_prototype_array.xml'), $resources);
|
$this->assertContains((string) new FileResource($fixturesDir.'xml'.\DIRECTORY_SEPARATOR.'services_prototype_array.xml'), $resources);
|
||||||
@ -726,7 +725,6 @@ class XmlFileLoaderTest extends TestCase
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
$this->assertContains((string) $globResource, $resources);
|
$this->assertContains((string) $globResource, $resources);
|
||||||
$resources = array_map('strval', $resources);
|
|
||||||
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo', $resources);
|
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo', $resources);
|
||||||
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar', $resources);
|
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar', $resources);
|
||||||
}
|
}
|
||||||
|
@ -451,7 +451,7 @@ class YamlFileLoaderTest extends TestCase
|
|||||||
sort($ids);
|
sort($ids);
|
||||||
$this->assertSame([Prototype\Foo::class, Prototype\Sub\Bar::class, 'service_container'], $ids);
|
$this->assertSame([Prototype\Foo::class, Prototype\Sub\Bar::class, 'service_container'], $ids);
|
||||||
|
|
||||||
$resources = $container->getResources();
|
$resources = array_map('strval', $container->getResources());
|
||||||
|
|
||||||
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
|
$fixturesDir = \dirname(__DIR__).\DIRECTORY_SEPARATOR.'Fixtures'.\DIRECTORY_SEPARATOR;
|
||||||
$this->assertContains((string) new FileResource($fixturesDir.'yaml'.\DIRECTORY_SEPARATOR.'services_prototype.yml'), $resources);
|
$this->assertContains((string) new FileResource($fixturesDir.'yaml'.\DIRECTORY_SEPARATOR.'services_prototype.yml'), $resources);
|
||||||
@ -468,7 +468,6 @@ class YamlFileLoaderTest extends TestCase
|
|||||||
]
|
]
|
||||||
);
|
);
|
||||||
$this->assertContains((string) $globResource, $resources);
|
$this->assertContains((string) $globResource, $resources);
|
||||||
$resources = array_map('strval', $resources);
|
|
||||||
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo', $resources);
|
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Foo', $resources);
|
||||||
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar', $resources);
|
$this->assertContains('reflection.Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar', $resources);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user