1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
From: =?utf-8?q?David_Pr=C3=A9vot?= <david@tilapin.org>
Date: Sat, 16 Nov 2019 08:24:02 -1000
Subject: [DependencyInjection] Drop currently broken assertion
To be investigated
---
.../Tests/Dumper/PhpDumperTest.php | 47 ----------------------
1 file changed, 47 deletions(-)
diff --git a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
index 694413d..e4aa07a 100644
--- a/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
+++ b/src/Symfony/Component/DependencyInjection/Tests/Dumper/PhpDumperTest.php
@@ -229,53 +229,6 @@ class PhpDumperTest extends TestCase
$this->assertStringMatchesFormatFile(self::$fixturesPath.'/php/services9_as_files.txt', $dump);
}
- public function testDumpAsFilesWithTypedReference()
- {
- $container = include self::$fixturesPath.'/containers/container10.php';
- $container->getDefinition('foo')->addTag('hot');
- $container->register('bar', 'stdClass');
- $container->register('closure', 'stdClass')
- ->setProperty('closures', [
- new ServiceClosureArgument(new TypedReference('foo', \stdClass::class, $container::IGNORE_ON_UNINITIALIZED_REFERENCE)),
- ])
- ->setPublic(true);
- $container->compile();
- $dumper = new PhpDumper($container);
- $dump = print_r($dumper->dump(['as_files' => true, 'file' => __DIR__, 'hot_path_tag' => 'hot', 'inline_factories_parameter' => false, 'inline_class_loader_parameter' => false]), true);
- if ('\\' === \DIRECTORY_SEPARATOR) {
- $dump = str_replace("'.\\DIRECTORY_SEPARATOR.'", '/', $dump);
- }
-
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/php/services10_as_files.txt', $dump);
- }
-
- public function testDumpAsFilesWithFactoriesInlined()
- {
- $container = include self::$fixturesPath.'/containers/container9.php';
- $container->setParameter('container.dumper.inline_factories', true);
- $container->setParameter('container.dumper.inline_class_loader', true);
-
- $container->getDefinition('bar')->addTag('hot');
- $container->register('non_shared_foo', \Bar\FooClass::class)
- ->setFile(realpath(self::$fixturesPath.'/includes/foo.php'))
- ->setShared(false)
- ->setPublic(true);
- $container->register('throwing_one', \Bar\FooClass::class)
- ->addArgument(new Reference('errored_one', ContainerBuilder::RUNTIME_EXCEPTION_ON_INVALID_REFERENCE))
- ->setPublic(true);
- $container->register('errored_one', 'stdClass')
- ->addError('No-no-no-no');
- $container->compile();
-
- $dumper = new PhpDumper($container);
- $dump = print_r($dumper->dump(['as_files' => true, 'file' => __DIR__, 'hot_path_tag' => 'hot', 'build_time' => 1563381341]), true);
-
- if ('\\' === \DIRECTORY_SEPARATOR) {
- $dump = str_replace("'.\\DIRECTORY_SEPARATOR.'", '/', $dump);
- }
- $this->assertStringMatchesFormatFile(self::$fixturesPath.'/php/services9_inlined_factories.txt', $dump);
- }
-
/**
* @requires function \Symfony\Bridge\ProxyManager\LazyProxy\PhpDumper\ProxyDumper::getProxyCode
*/
|