99
1010final class DebugTest extends TestCase
1111{
12- public function testExportObject ()
12+ public function testExportObject (): void
1313 {
1414 $ obj = new \stdClass ();
1515 $ obj ->foo = 'bar ' ;
@@ -19,7 +19,7 @@ public function testExportObject()
1919 static ::assertEquals ('stdClass ' , $ var ->__CLASS__ );
2020 }
2121
22- public function testExportObjectWithReference ()
22+ public function testExportObjectWithReference (): void
2323 {
2424 $ foo = 'bar ' ;
2525 $ bar = ['foo ' => & $ foo ];
@@ -32,7 +32,7 @@ public function testExportObjectWithReference()
3232 static ::assertEquals ('tab ' , $ bar ['foo ' ]);
3333 }
3434
35- public function testExportArray ()
35+ public function testExportArray (): void
3636 {
3737 $ array = ['a ' => 'b ' , 'b ' => ['c ' , 'd ' => ['e ' , 'f ' ]]];
3838 $ var = Debug::export ($ array , 2 );
@@ -41,7 +41,7 @@ public function testExportArray()
4141 static ::assertEquals ($ expected , $ var );
4242 }
4343
44- public function testExportDateTime ()
44+ public function testExportDateTime (): void
4545 {
4646 $ obj = new \DateTime ('2010-10-10 10:10:10 ' , new \DateTimeZone ('UTC ' ));
4747
@@ -50,7 +50,7 @@ public function testExportDateTime()
5050 static ::assertEquals ('2010-10-10T10:10:10+00:00 ' , $ var ->date );
5151 }
5252
53- public function testExportDateTimeImmutable ()
53+ public function testExportDateTimeImmutable (): void
5454 {
5555 $ obj = new \DateTimeImmutable ('2010-10-10 10:10:10 ' , new \DateTimeZone ('UTC ' ));
5656
@@ -59,7 +59,7 @@ public function testExportDateTimeImmutable()
5959 static ::assertEquals ('2010-10-10T10:10:10+00:00 ' , $ var ->date );
6060 }
6161
62- public function testExportDateTimeZone ()
62+ public function testExportDateTimeZone (): void
6363 {
6464 $ obj = new \DateTimeImmutable ('2010-10-10 12:34:56 ' , new \DateTimeZone ('Europe/Rome ' ));
6565
@@ -68,7 +68,7 @@ public function testExportDateTimeZone()
6868 static ::assertEquals ('2010-10-10T12:34:56+02:00 ' , $ var ->date );
6969 }
7070
71- public function testExportArrayTraversable ()
71+ public function testExportArrayTraversable (): void
7272 {
7373 $ obj = new \ArrayObject (['foobar ' ]);
7474
@@ -81,7 +81,7 @@ public function testExportArrayTraversable()
8181 static ::assertContains ('foobar ' , $ var ->__STORAGE__ );
8282 }
8383
84- public function testReturnsOutput ()
84+ public function testReturnsOutput (): void
8585 {
8686 \ob_start ();
8787
@@ -93,7 +93,7 @@ public function testReturnsOutput()
9393 static ::assertSame ($ outputValue , $ dump );
9494 }
9595
96- public function testDisablesOutput ()
96+ public function testDisablesOutput (): void
9797 {
9898 \ob_start ();
9999
@@ -109,7 +109,7 @@ public function testDisablesOutput()
109109 /**
110110 * @dataProvider provideAttributesCases
111111 */
112- public function testExportParentAttributes (TestAsset \ParentClass $ class , array $ expected )
112+ public function testExportParentAttributes (TestAsset \ParentClass $ class , array $ expected ): void
113113 {
114114 $ print_r_class = \print_r ($ class , true );
115115 $ print_r_expected = \print_r ($ expected , true );
0 commit comments