@@ -21,13 +21,13 @@ public function constructorStoresComponentsAsList(): void
2121
2222 $ description = new TaggedDescription ([5 => $ first , 9 => $ second ]);
2323
24- $ this -> assertSame ([$ first , $ second ], $ description ->components );
24+ self :: assertSame ([$ first , $ second ], $ description ->components );
2525 }
2626
2727 #[Test]
2828 public function componentsDefaultToEmptyList (): void
2929 {
30- $ this -> assertSame ([], new TaggedDescription ()->components );
30+ self :: assertSame ([], new TaggedDescription ()->components );
3131 }
3232
3333 #[Test]
@@ -37,7 +37,7 @@ public function constructorAcceptsTraversable(): void
3737
3838 $ description = new TaggedDescription (new \ArrayIterator ([$ tag ]));
3939
40- $ this -> assertSame ([$ tag ], $ description ->components );
40+ self :: assertSame ([$ tag ], $ description ->components );
4141 }
4242
4343 #[Test]
@@ -51,15 +51,15 @@ public function tagsContainsOnlyTagComponents(): void
5151 new Description (' more ' ),
5252 ]);
5353
54- $ this -> assertSame ([$ tag ], $ description ->tags );
54+ self :: assertSame ([$ tag ], $ description ->tags );
5555 }
5656
5757 #[Test]
5858 public function tagsIsEmptyWithoutTagComponents (): void
5959 {
6060 $ description = new TaggedDescription ([new Description ('only text ' )]);
6161
62- $ this -> assertSame ([], $ description ->tags );
62+ self :: assertSame ([], $ description ->tags );
6363 }
6464
6565 #[Test]
@@ -71,16 +71,16 @@ public function countReturnsNumberOfComponents(): void
7171 new Description ('b ' ),
7272 ]);
7373
74- $ this -> assertCount (3 , $ description );
74+ self :: assertCount (3 , $ description );
7575 }
7676
7777 #[Test]
7878 public function offsetExistsReflectsComponentPresence (): void
7979 {
8080 $ description = new TaggedDescription ([new Description ('a ' )]);
8181
82- $ this -> assertTrue (isset ($ description [0 ]));
83- $ this -> assertFalse (isset ($ description [1 ]));
82+ self :: assertTrue (isset ($ description [0 ]));
83+ self :: assertFalse (isset ($ description [1 ]));
8484 }
8585
8686 #[Test]
@@ -89,13 +89,13 @@ public function offsetGetReturnsComponent(): void
8989 $ component = new Description ('a ' );
9090 $ description = new TaggedDescription ([$ component ]);
9191
92- $ this -> assertSame ($ component , $ description [0 ]);
92+ self :: assertSame ($ component , $ description [0 ]);
9393 }
9494
9595 #[Test]
9696 public function offsetGetReturnsNullForMissingOffset (): void
9797 {
98- $ this -> assertNull (new TaggedDescription ()[42 ]);
98+ self :: assertNull (new TaggedDescription ()[42 ]);
9999 }
100100
101101 #[Test]
@@ -124,14 +124,14 @@ public function iteratorYieldsAllComponentsInOrder(): void
124124 $ components = [new Description ('a ' ), new Tag ('see ' ), new Description ('b ' )];
125125 $ description = new TaggedDescription ($ components );
126126
127- $ this -> assertSame ($ components , \iterator_to_array ($ description , false ));
127+ self :: assertSame ($ components , \iterator_to_array ($ description , false ));
128128 }
129129
130130 #[Test]
131131 public function tagComponentsAreTagInterfaceInstances (): void
132132 {
133133 $ description = new TaggedDescription ([new Tag ('see ' )]);
134134
135- $ this -> assertContainsOnlyInstancesOf (TagInterface::class, $ description ->tags );
135+ self :: assertContainsOnlyInstancesOf (TagInterface::class, $ description ->tags );
136136 }
137137}
0 commit comments