File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
src/LightSaml/SymfonyBridgeBundle/Resources/config
tests/LightSaml/SymfonyBridgeBundle/Tests Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 28
28
"require-dev" : {
29
29
"symfony/browser-kit" : " ~2.7|~3.0|~4.0" ,
30
30
"symfony/finder" : " ~2.7|~3.0|~4.0" ,
31
+ "symfony/filesystem" : " ~2.7|~3.0|~4.0" ,
32
+ "symfony/routing" : " ~2.7|~3.0|~4.0" ,
31
33
"phpunit/phpunit" : " ^5.7" ,
32
34
"php-coveralls/php-coveralls" : " ~2.0"
33
35
},
Original file line number Diff line number Diff line change @@ -9,4 +9,4 @@ services:
9
9
class : Symfony\Component\EventDispatcher\EventDispatcher
10
10
11
11
lightsaml.system.logger :
12
- alias : logger
12
+ class : Psr\Log\NullLogger
Original file line number Diff line number Diff line change @@ -257,11 +257,12 @@ public function test_loads_system_custom_event_dispatcher()
257
257
$ this ->assertEquals ($ expectedAlias , (string ) $ containerBuilder ->getAlias ('lightsaml.system.event_dispatcher ' ));
258
258
}
259
259
260
- public function test_loads_system_logger ()
260
+ public function test_loads_system_logger_when_given_in_config ()
261
261
{
262
262
$ containerBuilder = new ContainerBuilder (new ParameterBag ());
263
263
$ extension = new LightSamlSymfonyBridgeExtension ();
264
264
$ config = $ this ->getDefaultConfig ();
265
+ $ config ['light_saml_symfony_bridge ' ]['system ' ]['logger ' ] = 'some.logger ' ;
265
266
266
267
$ extension ->load ($ config , $ containerBuilder );
267
268
Original file line number Diff line number Diff line change 31
31
use Psr \Log \LoggerInterface ;
32
32
use Symfony \Bundle \FrameworkBundle \Test \WebTestCase ;
33
33
use Symfony \Component \EventDispatcher \EventDispatcherInterface ;
34
+ use Symfony \Component \Filesystem \Filesystem ;
34
35
35
36
class FunctionalTest extends WebTestCase
36
37
{
@@ -39,6 +40,8 @@ protected function setUp()
39
40
parent ::setUp ();
40
41
$ _SERVER ['KERNEL_CLASS ' ] = TestKernel::class;
41
42
$ _SERVER ['KERNEL_DIR ' ] = __DIR__ ;
43
+ $ fs = new Filesystem ();
44
+ $ fs ->remove (__DIR__ .'/cache ' );
42
45
}
43
46
44
47
protected static function getKernelClass ()
You can’t perform that action at this time.
0 commit comments