8000 Fix tests · symfony/symfony@318a810 · GitHub
[go: up one dir, main page]

Skip to content

Commit 318a810

Browse files
committed
Fix tests
1 parent 87df1f1 commit 318a810

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

composer.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@
101101
"symfony/security-acl": "~2.8|~3.0",
102102
"phpdocumentor/reflection-docblock": "^3.0|^4.0"
103103
},
104-
"provide": {
105-
"psr/log-implementation": "1.0.0"
106-
},
107104
"conflict": {
108105
"phpdocumentor/reflection-docblock": "<3.0||>=3.2.0,<3.2.2",
109106
"phpdocumentor/type-resolver": "<0.2.0",
@@ -112,6 +109,7 @@
112109
"provide": {
113110
"psr/cache-implementation": "1.0",
114111
"psr/container-implementation": "1.0",
112+
"psr/log-implementation": "1.0.0",
115113
"psr/simple-cache-implementation": "1.0"
116114
},
117115
"autoload": {

src/Symfony/Component/HttpKernel/Tests/Log/LoggerTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ class LoggerTest extends TestCase
3434

3535
protected function setUp()
3636
{
37-
$this->tmpFile = sys_get_temp_dir().'/log';
37+
$this->tmpFile = sys_get_temp_dir().DIRECTORY_SEPARATOR.'log';
3838
$this->logger = new Logger(LogLevel::DEBUG, $this->tmpFile);
3939
}
4040

4141
protected function tearDown()
4242
{
43-
unlink($this->tmpFile);
43+
if (!@unlink($this->tmpFile)) {
44+
file_put_contents($this->tmpFile, '');
45+
}
4446
}
4547

4648
private function assertLogsMatch(array $expected, array $given)

0 commit comments

Comments
 (0)
0