@@ -53,7 +53,7 @@ public function testBothEmpty()
5353 $ to = [];
5454 $ common = $ this ->implementation ->calculate ($ from , $ to );
5555
56- $ this ->assertEquals ([], $ common );
56+ $ this ->assertSame ([], $ common );
5757 }
5858
5959 public function testIsStrictComparison ()
@@ -65,7 +65,7 @@ public function testIsStrictComparison()
6565 $ to = $ from ;
6666 $ common = $ this ->implementation ->calculate ($ from , $ to );
6767
68- $ this ->assertEquals ($ from , $ common );
68+ $ this ->assertSame ($ from , $ common );
6969
7070 $ to = [
7171 false , false , false , false , false , false ,
@@ -79,7 +79,7 @@ public function testIsStrictComparison()
7979
8080 $ common = $ this ->implementation ->calculate ($ from , $ to );
8181
82- $ this ->assertEquals ($ expected , $ common );
82+ $ this ->assertSame ($ expected , $ common );
8383 }
8484
8585 public function testEqualSequences ()
@@ -90,7 +90,7 @@ public function testEqualSequences()
9090 $ to = $ range ;
9191 $ common = $ this ->implementation ->calculate ($ from , $ to );
9292
93- $ this ->assertEquals ($ range , $ common );
93+ $ this ->assertSame ($ range , $ common );
9494 }
9595 }
9696
@@ -99,18 +99,18 @@ public function testDistinctSequences()
9999 $ from = ['A ' ];
100100 $ to = ['B ' ];
101101 $ common = $ this ->implementation ->calculate ($ from , $ to );
102- $ this ->assertEquals ([], $ common );
102+ $ this ->assertSame ([], $ common );
103103
104104 $ from = ['A ' , 'B ' , 'C ' ];
105105 $ to = ['D ' , 'E ' , 'F ' ];
106106 $ common = $ this ->implementation ->calculate ($ from , $ to );
107- $ this ->assertEquals ([], $ common );
107+ $ this ->assertSame ([], $ common );
108108
109109 foreach ($ this ->stress_sizes as $ size ) {
110110 $ from = \range (1 , $ size );
111111 $ to = \range ($ size + 1 , $ size * 2 );
112112 $ common = $ this ->implementation ->calculate ($ from , $ to );
113- $ this ->assertEquals ([], $ common );
113+ $ this ->assertSame ([], $ common );
114114 }
115115 }
116116
@@ -120,21 +120,21 @@ public function testCommonSubsequence()
120120 $ to = ['A ' , 'B ' , 'D ' , 'E ' , 'H ' ];
121121 $ expected = ['A ' , 'E ' ];
122122 $ common = $ this ->implementation ->calculate ($ from , $ to );
123- $ this ->assertEquals ($ expected , $ common );
123+ $ this ->assertSame ($ expected , $ common );
124124
125125 $ from = ['A ' , 'C ' , 'E ' , 'F ' , 'G ' ];
126126 $ to = ['B ' , 'C ' , 'D ' , 'E ' , 'F ' , 'H ' ];
127127 $ expected = ['C ' , 'E ' , 'F ' ];
128128 $ common = $ this ->implementation ->calculate ($ from , $ to );
129- $ this ->assertEquals ($ expected , $ common );
129+ $ this ->assertSame ($ expected , $ common );
130130
131131 foreach ($ this ->stress_sizes as $ size ) {
132132 $ from = $ size < 2 ? [1 ] : \range (1 , $ size + 1 , 2 );
133133 $ to = $ size < 3 ? [1 ] : \range (1 , $ size + 1 , 3 );
134134 $ expected = $ size < 6 ? [1 ] : \range (1 , $ size + 1 , 6 );
135135 $ common = $ this ->implementation ->calculate ($ from , $ to );
136136
137- $ this ->assertEquals ($ expected , $ common );
137+ $ this ->assertSame ($ expected , $ common );
138138 }
139139 }
140140
@@ -145,18 +145,18 @@ public function testSingleElementSubsequenceAtStart()
145145 $ to = \array_slice ($ from , 0 , 1 );
146146 $ common = $ this ->implementation ->calculate ($ from , $ to );
147147
148- $ this ->assertEquals ($ to , $ common );
148+ $ this ->assertSame ($ to , $ common );
149149 }
150150 }
151151
152152 public function testSingleElementSubsequenceAtMiddle ()
153153 {
154154 foreach ($ this ->stress_sizes as $ size ) {
155155 $ from = \range (1 , $ size );
156- $ to = \array_slice ($ from , (int ) $ size / 2 , 1 );
156+ $ to = \array_slice ($ from , (int ) ( $ size / 2 ) , 1 );
157157 $ common = $ this ->implementation ->calculate ($ from , $ to );
158158
159- $ this ->assertEquals ($ to , $ common );
159+ $ this ->assertSame ($ to , $ common );
160160 }
161161 }
162162
@@ -167,7 +167,7 @@ public function testSingleElementSubsequenceAtEnd()
167167 $ to = \array_slice ($ from , $ size - 1 , 1 );
168168 $ common = $ this ->implementation ->calculate ($ from , $ to );
169169
170- $ this ->assertEquals ($ to , $ common );
170+ $ this ->assertSame ($ to , $ common );
171171 }
172172 }
173173
@@ -177,14 +177,14 @@ public function testReversedSequences()
177177 $ to = ['B ' , 'A ' ];
178178 $ expected = ['A ' ];
179179 $ common = $ this ->implementation ->calculate ($ from , $ to );
180- $ this ->assertEquals ($ expected , $ common );
180+ $ this ->assertSame ($ expected , $ common );
181181
182182 foreach ($ this ->stress_sizes as $ size ) {
183183 $ from = \range (1 , $ size );
184184 $ to = \array_reverse ($ from );
185185 $ common = $ this ->implementation ->calculate ($ from , $ to );
186186
187- $ this ->assertEquals ([1 ], $ common );
187+ $ this ->assertSame ([1 ], $ common );
188188 }
189189 }
190190
0 commit comments