@@ -26,26 +26,26 @@ public function testSchemaLoading(): void
2626 SampleBootWithMethodBoot::class,
2727 SampleBoot::class,
2828 ], [
29- static function (Container $ container , SampleBoot $ boot ): void {
29+ static function (Container $ container , SampleBoot $ boot ) {
3030 $ container ->bind ('efg ' , $ boot );
3131 }
3232 ], [
33- static function (Container $ container , SampleBoot $ boot ): void {
33+ static function (Container $ container , SampleBoot $ boot ) {
3434 $ container ->bind ('ghi ' , $ boot );
3535 }
3636 ]);
3737
38- self :: assertTrue ($ this ->container ->has ('abc ' ));
39- self :: assertTrue ($ this ->container ->hasInstance ('cde ' ));
40- self :: assertTrue ($ this ->container ->hasInstance ('def ' ));
41- self :: assertTrue ($ this ->container ->hasInstance ('efg ' ));
42- self :: assertTrue ($ this ->container ->has ('single ' ));
43- self :: assertTrue ($ this ->container ->has ('ghi ' ));
44- self :: assertNotInstanceOf (SampleBoot::class, $ this ->container ->get ('efg ' ));
45- self :: assertInstanceOf (SampleBoot::class, $ this ->container ->get ('ghi ' ));
38+ $ this -> assertTrue ($ this ->container ->has ('abc ' ));
39+ $ this -> assertTrue ($ this ->container ->hasInstance ('cde ' ));
40+ $ this -> assertTrue ($ this ->container ->hasInstance ('def ' ));
41+ $ this -> assertTrue ($ this ->container ->hasInstance ('efg ' ));
42+ $ this -> assertTrue ($ this ->container ->has ('single ' ));
43+ $ this -> assertTrue ($ this ->container ->has ('ghi ' ));
44+ $ this -> assertNotInstanceOf (SampleBoot::class, $ this ->container ->get ('efg ' ));
45+ $ this -> assertInstanceOf (SampleBoot::class, $ this ->container ->get ('ghi ' ));
4646
4747 $ classes = \array_filter ($ classes , static fn (string $ class ): bool => $ class !== SampleClass::class);
48- self :: assertSame (\array_merge ($ classes , [
48+ $ this -> assertSame (\array_merge ($ classes , [
4949 BootloaderA::class,
5050 BootloaderB::class,
5151 ]), $ bootloader ->getClasses ());
@@ -61,14 +61,14 @@ public function testBootloadFromInstance(): void
6161 new SampleBoot (),
6262 ]);
6363
64- self :: assertTrue ($ this ->container ->has ('abc ' ));
65- self :: assertTrue ($ this ->container ->has ('single ' ));
66- self :: assertTrue ($ this ->container ->hasInstance ('def ' ));
67- self :: assertTrue ($ this ->container ->hasInstance ('efg ' ));
68- self :: assertTrue ($ this ->container ->hasInstance ('cde ' ));
69- self :: assertTrue ($ this ->container ->has ('ghi ' ));
64+ $ this -> assertTrue ($ this ->container ->has ('abc ' ));
65+ $ this -> assertTrue ($ this ->container ->has ('single ' ));
66+ $ this -> assertTrue ($ this ->container ->hasInstance ('def ' ));
67+ $ this -> assertTrue ($ this ->container ->hasInstance ('efg ' ));
68+ $ this -> assertTrue ($ this ->container ->hasInstance ('cde ' ));
69+ $ this -> assertTrue ($ this ->container ->has ('ghi ' ));
7070
71- self :: assertSame ([
71+ $ this -> assertSame ([
7272 SampleBootWithMethodBoot::class,
7373 SampleBoot::class,
7474 BootloaderA::class,
@@ -98,13 +98,13 @@ public function boot(BinderInterface $binder): void
9898 },
9999 ]);
100100
101- self :: assertTrue ($ this ->container ->has ('abc ' ));
102- self :: assertTrue ($ this ->container ->has ('single ' ));
103- self :: assertTrue ($ this ->container ->hasInstance ('def ' ));
104- self :: assertTrue ($ this ->container ->hasInstance ('efg ' ));
105- self :: assertTrue ($ this ->container ->has ('ghi ' ));
101+ $ this -> assertTrue ($ this ->container ->has ('abc ' ));
102+ $ this -> assertTrue ($ this ->container ->has ('single ' ));
103+ $ this -> assertTrue ($ this ->container ->hasInstance ('def ' ));
104+ $ this -> assertTrue ($ this ->container ->hasInstance ('efg ' ));
105+ $ this -> assertTrue ($ this ->container ->has ('ghi ' ));
106106
107- self :: assertCount (1 , $ bootloader ->getClasses ());
107+ $ this -> assertCount (1 , $ bootloader ->getClasses ());
108108 }
109109
110110 public function testException (): void
@@ -123,7 +123,7 @@ public function testDependenciesFromConstant(): void
123123 SampleBoot::class,
124124 ]);
125125
126- self :: assertSame (\array_merge ($ classes , [
126+ $ this -> assertSame (\array_merge ($ classes , [
127127 BootloaderA::class,
128128 BootloaderB::class,
129129 ]), $ bootloader ->getClasses ());
@@ -136,7 +136,7 @@ public function testDependenciesFromInterfaceMethod(): void
136136 BootloaderB::class,
137137 ]);
138138
139- self :: assertSame (\array_merge ($ classes , [
139+ $ this -> assertSame (\array_merge ($ classes , [
140140 BootloaderA::class,
141141 ]), $ bootloader ->getClasses ());
142142 }
@@ -148,7 +148,7 @@ public function testDependenciesFromInitAndBootMethods(): void
148148 BootloaderC::class,
149149 ]);
150150
151- self :: assertSame (\array_merge ($ classes , [
151+ $ this -> assertSame (\array_merge ($ classes , [
152152 BootloaderA::class,
153153 BootloaderB::class
154154 ]), $ bootloader ->getClasses ());
0 commit comments