File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change @@ -564,29 +564,33 @@ public function testContainerCanResolveClasses()
564
564
$ this ->assertInstanceOf (ContainerConcreteStub::class, $ class );
565
565
}
566
566
567
- public function testContainerCanCatchCircularDependency () {
567
+ public function testContainerCanCatchCircularDependency ()
568
+ {
568
569
$ this ->expectException (CircularDependencyException::class);
569
570
570
571
$ container = new Container ;
571
572
$ container ->get (CircularAStub::class);
572
573
}
573
574
}
574
575
575
- class CircularAStub {
576
- public function __construct (CircularBStub $ b ) {
577
-
576
+ class CircularAStub
577
+ {
578
+ public function __construct (CircularBStub $ b )
579
+ {
578
580
}
579
581
}
580
582
581
- class CircularBStub {
582
- public function __construct (CircularCStub $ c ) {
583
-
583
+ class CircularBStub
584
+ {
585
+ public function __construct (CircularCStub $ c )
586
+ {
584
587
}
585
588
}
586
589
587
- class CircularCStub {
588
- public function __construct (CircularAStub $ a ) {
589
-
590
+ class CircularCStub
591
+ {
592
+ public function __construct (CircularAStub $ a )
593
+ {
590
594
}
591
595
}
592
596
You can’t perform that action at this time.
0 commit comments