File tree 2 files changed +5
-5
lines changed
src/Symfony/Component/HttpKernel/Tests/Log
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 101
101
"symfony/security-acl" : " ~2.8|~3.0" ,
102
102
"phpdocumentor/reflection-docblock" : " ^3.0|^4.0"
103
103
},
104
- "provide" : {
105
- "psr/log-implementation" : " 1.0.0"
106
- },
107
104
"conflict" : {
108
105
"phpdocumentor/reflection-docblock" : " <3.0||>=3.2.0,<3.2.2" ,
109
106
"phpdocumentor/type-resolver" : " <0.2.0" ,
112
109
"provide" : {
113
110
"psr/cache-implementation" : " 1.0" ,
114
111
"psr/container-implementation" : " 1.0" ,
112
+ "psr/log-implementation" : " 1.0.0" ,
115
113
"psr/simple-cache-implementation" : " 1.0"
116
114
},
117
115
"autoload" : {
Original file line number Diff line number Diff line change @@ -34,13 +34,15 @@ class LoggerTest extends TestCase
34
34
35
35
protected function setUp ()
36
36
{
37
- $ this ->tmpFile = sys_get_temp_dir ().' / log ' ;
37
+ $ this ->tmpFile = sys_get_temp_dir ().DIRECTORY_SEPARATOR . ' log ' ;
38
38
$ this ->logger = new Logger (LogLevel::DEBUG , $ this ->tmpFile );
39
39
}
40
40
41
41
protected function tearDown ()
42
42
{
43
- unlink ($ this ->tmpFile );
43
+ if (!@unlink ($ this ->tmpFile )) {
44
+ file_put_contents ($ this ->tmpFile , '' );
45
+ }
44
46
}
45
47
46
48
private function assertLogsMatch (array $ expected , array $ given )
You can’t perform that action at this time.
0 commit comments