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

Skip to content

Commit 5b0da22

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

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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: 3 additions & 3 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()
@@ -83,7 +83,7 @@ public function testIsFreshSameConstructorArgs()
8383
);
8484

8585
// test with a stale file *but* the resource will not be changed
86-
$this->assertTrue($oldResource->isFresh($this->getStaleFileTime()), '->isFresh() returns false if the constructor arguments have changed');
86+
$this->assertFalse($oldResource->isFresh($this->getStaleFileTime()), '->isFresh() returns false if the constructor arguments have changed');
8787
}
8888

8989
public function testNotFreshIfClassNotFound()
@@ -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