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

Skip to content

Commit eed70d4

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testIsFresh()
5454
{
5555
$this->assertTrue($this->resource->isFresh($this->time), '->isFresh() returns true if the resource has not changed in same second');
5656
$this->assertTrue($this->resource->isFresh($this->time + 10), '->isFresh() returns true if the resource has not changed');
57-
$this->assertFalse($this->resource->isFresh($this->time - 86400), '->isFresh() returns false if the resource has been updated');
57+
$this->assertInstanceOf(AutowireServiceResource::class, $this->resource->isFresh($this->time - 86400), '->isFresh() returns the resource object if the resource has been updated');
5858
}
5959

6060
public function testIsFreshForDeletedResources()
@@ -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->assertInstanceOf(AutowireServiceResource::class, $oldResource->isFresh($this->getStaleFileTime()), '->isFresh() returns the resource object 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->assertInstanceOf(AutowireServiceResource::class, $oldResource->isFresh($this->getStaleFileTime()), '->isFresh() returns the resource object 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