@@ -130,7 +130,7 @@ public function __toString() { return "Foo"; }
130130 yield [
131131 '<?php namespace FooNamespace;
132132 use Bar\Stringable;
133- class Foo implements Stringable, \ Stringable
133+ class Foo implements \ Stringable, Stringable
134134 {
135135 public function __toString() { return "Foo"; }
136136 }
@@ -167,13 +167,13 @@ public function __toString() { return "Foo"; }
167167
168168 foreach ($ implementedInterfacesCases as $ implementedInterface ) {
169169 yield [
170- \sprintf ($ template , $ implementedInterface . ' , \Stringable' ),
170+ \sprintf ($ template , ' \Stringable, ' . $ implementedInterface ),
171171 \sprintf ($ template , $ implementedInterface ),
172172 ];
173173 }
174174
175175 yield [
176- '<?php class Foo implements FooInterface, \Stringable
176+ '<?php class Foo implements \Stringable, FooInterface
177177 {
178178 public function __toString() { return "Foo"; }
179179 }
@@ -215,7 +215,7 @@ public function __TOSTRING() { return "Foo"; }
215215 '<?php
216216 namespace Foo;
217217 use Bar;
218- class Baz implements Stringable, \ Stringable {
218+ class Baz implements \ Stringable, Stringable {
219219 public function __toString() { return ""; }
220220 }
221221 ' ,
@@ -273,23 +273,25 @@ class Foo5 { public function __noString() { return "5"; } }
273273
274274 yield [
275275 '<?php
276- namespace Foo { class C implements I, \Stringable { public function __toString() { return ""; } }}
276+ namespace Foo { class C implements \Stringable, I { public function __toString() { return ""; } }}
277277 namespace Bar { class C implements \Stringable, I { public function __toString() { return ""; } }}
278278 namespace Baz { class C implements I, \Stringable { public function __toString() { return ""; } }}
279+ namespace Qux { class C implements \Stringable, I { public function __toString() { return ""; } }}
279280 ;
280281 ' ,
281282 '<?php
282283 namespace Foo { class C implements I { public function __toString() { return ""; } }}
283284 namespace Bar { class C implements \Stringable, I { public function __toString() { return ""; } }}
284- namespace Baz { class C implements I { public function __toString() { return ""; } }}
285+ namespace Baz { class C implements I, \Stringable { public function __toString() { return ""; } }}
286+ namespace Qux { class C implements I { public function __toString() { return ""; } }}
285287 ;
286288 ' ,
287289 ];
288290
289291 yield [
290292 '<?php
291293 namespace Foo { use Stringable as Stringy; class C {} }
292- namespace Bar { class C implements Stringy, \Stringable { public function __toString() { return ""; } }}
294+ namespace Bar { class C implements \Stringable, Stringy { public function __toString() { return ""; } }}
293295 ;
294296 ' ,
295297 '<?php
0 commit comments