You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Config/AutowireServiceResourceTest.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public function testIsFresh()
54
54
{
55
55
$this->assertTrue($this->resource->isFresh($this->time), '->isFresh() returns true if the resource has not changed in same second');
56
56
$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');
58
58
}
59
59
60
60
publicfunctiontestIsFreshForDeletedResources()
@@ -73,7 +73,7 @@ public function testIsNotFreshChangedResource()
73
73
);
74
74
75
75
// 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');
77
77
}
78
78
79
79
publicfunctiontestIsFreshSameConstructorArgs()
@@ -83,7 +83,7 @@ public function testIsFreshSameConstructorArgs()
83
83
);
84
84
85
85
// 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');
87
87
}
88
88
89
89
publicfunctiontestNotFreshIfClassNotFound()
@@ -94,7 +94,7 @@ public function testNotFreshIfClassNotFound()
94
94
array()
95
95
);
96
96
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');
0 commit comments