@@ -70,7 +70,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnService
7070 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
7171
7272 $ service = $ systemctl ->getService ($ unitName );
73- self ::assertEquals ('testService ' , $ service ->getName ());
73+ self ::assertSame ('testService ' , $ service ->getName ());
7474 }
7575
7676 /**
@@ -106,7 +106,7 @@ public function itShouldReturnAServiceWithTheCorrectNameOnServiceGetting(): void
106106 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
107107
108108 $ service = $ systemctl ->getService ($ unitName );
109- self ::assertEquals ('testService ' , $ service ->getName ());
109+ self ::assertSame ('testService ' , $ service ->getName ());
110110 }
111111
112112 /**
@@ -125,7 +125,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnMountGe
125125
126126 $ mount = $ systemctl ->getMount ($ unitName );
127127 $ this ->assertInstanceOf (Mount::class, $ mount );
128- $ this ->assertEquals ($ unitName , $ mount ->getName ());
128+ $ this ->assertSame ($ unitName , $ mount ->getName ());
129129 }
130130
131131 /**
@@ -161,7 +161,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnTimerGe
161161
162162 $ timer = $ systemctl ->getTimer ($ unitName );
163163 self ::assertInstanceOf (Timer::class, $ timer );
164- self ::assertEquals ($ unitName , $ timer ->getName ());
164+ self ::assertSame ($ unitName , $ timer ->getName ());
165165 }
166166
167167 /**
@@ -180,7 +180,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnSocketG
180180
181181 $ socket = $ systemctl ->getSocket ($ unitName );
182182 self ::assertInstanceOf (Socket::class, $ socket );
183- self ::assertEquals ($ unitName , $ socket ->getName ());
183+ self ::assertSame ($ unitName , $ socket ->getName ());
184184 }
185185
186186 /**
@@ -199,7 +199,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnScopeGe
199199
200200 $ scope = $ systemctl ->getScope ($ unitName );
201201 self ::assertInstanceOf (Scope::class, $ scope );
202- self ::assertEquals ($ unitName , $ scope ->getName ());
202+ self ::assertSame ($ unitName , $ scope ->getName ());
203203 }
204204
205205 /**
@@ -218,7 +218,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnSliceGe
218218
219219 $ slice = $ systemctl ->getSlice ($ unitName );
220220 $ this ->assertInstanceOf (Slice::class, $ slice );
221- $ this ->assertEquals ($ unitName , $ slice ->getName ());
221+ $ this ->assertSame ($ unitName , $ slice ->getName ());
222222 }
223223
224224 /**
@@ -237,7 +237,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnTargetG
237237
238238 $ target = $ systemctl ->getTarget ($ unitName );
239239 $ this ->assertInstanceOf (Target::class, $ target );
240- $ this ->assertEquals ($ unitName , $ target ->getName ());
240+ $ this ->assertSame ($ unitName , $ target ->getName ());
241241 }
242242
243243 /**
@@ -256,7 +256,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnSwapGet
256256
257257 $ swap = $ systemctl ->getSwap ($ unitName );
258258 $ this ->assertInstanceOf (Swap::class, $ swap );
259- $ this ->assertEquals ($ unitName , $ swap ->getName ());
259+ $ this ->assertSame ($ unitName , $ swap ->getName ());
260260 }
261261
262262 /**
@@ -275,7 +275,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnAutomou
275275
276276 $ automount = $ systemctl ->getAutomount ($ unitName );
277277 $ this ->assertInstanceOf (Automount::class, $ automount );
278- $ this ->assertEquals ($ unitName , $ automount ->getName ());
278+ $ this ->assertSame ($ unitName , $ automount ->getName ());
279279 }
280280
281281 /**
@@ -413,7 +413,7 @@ public function itShouldReturnATimerWithTheCorrectNameOnTimerGetting(): void
413413 $ systemctl = (new SystemCtl ())->setCommandDispatcher ($ commandDispatcherStub ->reveal ());
414414
415415 $ service = $ systemctl ->getService ($ unitName );
416- self ::assertEquals ('testService ' , $ service ->getName ());
416+ self ::assertSame ('testService ' , $ service ->getName ());
417417 }
418418
419419 /**
@@ -432,7 +432,7 @@ public function itShouldCallCommandDispatcherWithListUnitsAndUnitPrefixOnDeviceG
432432
433433 $ device = $ systemctl ->getDevice ($ unitName );
434434 self ::assertInstanceOf (Device::class, $ device );
435- self ::assertEquals ($ unitName , $ device ->getName ());
435+ self ::assertSame ($ unitName , $ device ->getName ());
436436 }
437437
438438 /**
0 commit comments