8000 fix tests of #18144 · symfony/symfony@b524c93 · GitHub
[go: up one dir, main page]

Skip to content

Commit b524c93

Browse files
committed
fix tests of #18144
1 parent cef7e5b commit b524c93

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/Symfony/Component/DependencyInjection/Config/AutowireServiceResource.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\Component\DependencyInjection\Config;
1313

1414
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface;
15-
use Symfony\Component\DependencyInjection\Compiler\AutowirePass;
1615

1716
class AutowireServiceResource implements SelfCheckingResourceInterface, \Serializable
1817
{
@@ -46,7 +45,7 @@ public function isFresh($timestamp)
4645
return false;
4746
}
4847

49-
return AutowirePass::createResourceForClass($reflectionClass);
48+
return false;
5049
}
5150

5251
public function __toString()

src/Symfony/Component/DependencyInjection/Tests/Config/AutowireServiceResourceTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function testIsNotFreshChangedResource()
7373
);
7474

7575
// test with a stale file *and* a resource that *will* be different than the actual
76-
$this->assertFalse($oldResource->isFresh($this->getStaleFileTime()), '->isFresh() returns false if the constructor arguments have changed');
76+
$this->assertFalse($oldResource->isFresh($this->getStaleFileTime()), '->isFresh() returns the false if the constructor arguments have changed');
7777
}
7878

7979
public function testIsFreshSameConstructorArgs()
@@ -94,7 +94,7 @@ public function testNotFreshIfClassNotFound()
9494
array()
9595
);
9696

97-
$this->assertFalse($resource->isFresh($this->getStaleFileTime()), '->isFresh() returns false if the class no longer exists');
97+
$this->assertFalse($resource->isFresh($this->getStaleFileTime()), '->isFresh() the resource object false if the class no longer exists');
9898
}
9999

100100
protected function tearDown()

0 commit comments

Comments
 (0)
0