Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 07a21cb

Browse filesBrowse files
committed
fix tests of symfony#18144
1 parent cef7e5b commit 07a21cb
Copy full SHA for 07a21cb

File tree

2 files changed

+4
-4
lines changed
Filter options

2 files changed

+4
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Config/AutowireServiceResource.php
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Tests/Config/AutowireServiceResourceTest.php
+3-3Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.