10000 fix tests of #18144 · HeahDude/symfony@07a21cb · GitHub
[go: up one dir, main page]

Skip to content

Commit 07a21cb

Browse files
committed
fix tests of symfony#18144
1 parent cef7e5b commit 07a21cb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function isFresh($timestamp)
4646
return false;
4747
}
4848

49-
return AutowirePass::createResourceForClass($reflectionClass);
49+
return false;
5050
}
5151

5252
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