9
9
10
10
final class DebugTest extends TestCase
11
11
{
12
- public function testExportObject ()
12
+ public function testExportObject (): void
13
13
{
14
14
$ obj = new \stdClass ();
15
15
$ obj ->foo = 'bar ' ;
@@ -19,7 +19,7 @@ public function testExportObject()
19
19
static ::assertEquals ('stdClass ' , $ var ->__CLASS__ );
20
20
}
21
21
22
- public function testExportObjectWithReference ()
22
+ public function testExportObjectWithReference (): void
23
23
{
24
24
$ foo = 'bar ' ;
25
25
$ bar = ['foo ' => & $ foo ];
@@ -32,7 +32,7 @@ public function testExportObjectWithReference()
32
32
static ::assertEquals ('tab ' , $ bar ['foo ' ]);
33
33
}
34
34
35
- public function testExportArray ()
35
+ public function testExportArray (): void
36
36
{
37
37
$ array = ['a ' => 'b ' , 'b ' => ['c ' , 'd ' => ['e ' , 'f ' ]]];
38
38
$ var = Debug::export ($ array , 2 );
@@ -41,7 +41,7 @@ public function testExportArray()
41
41
static ::assertEquals ($ expected , $ var );
42
42
}
43
43
44
- public function testExportDateTime ()
44
+ public function testExportDateTime (): void
45
45
{
46
46
$ obj = new \DateTime ('2010-10-10 10:10:10 ' , new \DateTimeZone ('UTC ' ));
47
47
@@ -50,7 +50,7 @@ public function testExportDateTime()
50
50
static ::assertEquals ('2010-10-10T10:10:10+00:00 ' , $ var ->date );
51
51
}
52
52
53
- public function testExportDateTimeImmutable ()
53
+ public function testExportDateTimeImmutable (): void
54
54
{
55
55
$ obj = new \DateTimeImmutable ('2010-10-10 10:10:10 ' , new \DateTimeZone ('UTC ' ));
56
56
@@ -59,7 +59,7 @@ public function testExportDateTimeImmutable()
59
59
static ::assertEquals ('2010-10-10T10:10:10+00:00 ' , $ var ->date );
60
60
}
61
61
62
- public function testExportDateTimeZone ()
62
+ public function testExportDateTimeZone (): void
63
63
{
64
64
$ obj = new \DateTimeImmutable ('2010-10-10 12:34:56 ' , new \DateTimeZone ('Europe/Rome ' ));
65
65
@@ -68,7 +68,7 @@ public function testExportDateTimeZone()
68
68
static ::assertEquals ('2010-10-10T12:34:56+02:00 ' , $ var ->date );
69
69
}
70
70
71
- public function testExportArrayTraversable ()
71
+ public function testExportArrayTraversable (): void
72
72
{
73
73
$ obj = new \ArrayObject (['foobar ' ]);
74
74
@@ -81,7 +81,7 @@ public function testExportArrayTraversable()
81
81
static ::assertContains ('foobar ' , $ var ->__STORAGE__ );
82
82
}
83
83
84
- public function testReturnsOutput ()
84
+ public function testReturnsOutput (): void
85
85
{
86
86
\ob_start ();
87
87
@@ -93,7 +93,7 @@ public function testReturnsOutput()
93
93
static ::assertSame ($ outputValue , $ dump );
94
94
}
95
95
96
- public function testDisablesOutput ()
96
+ public function testDisablesOutput (): void
97
97
{
98
98
\ob_start ();
99
99
@@ -109,7 +109,7 @@ public function testDisablesOutput()
109
109
/**
110
110
* @dataProvider provideAttributesCases
111
111
*/
112
- public function testExportParentAttributes (TestAsset \ParentClass $ class , array $ expected )
112
+ public function testExportParentAttributes (TestAsset \ParentClass $ class , array $ expected ): void
113
113
{
114
114
$ print_r_class = \print_r ($ class , true );
115
115
$ print_r_expected = \print_r ($ expected , true );
0 commit comments