Commit fa02db3 1 parent d4fce83 commit fa02db3 Copy full SHA for fa02db3
File tree 3 files changed +10
-10
lines changed
3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ function ($matches) {
24
24
// multiple sections possible with always two forming a pair
25
25
$ chunks = array_chunk ($ parts , $ chunksPerTest );
26
26
$ tests = [];
27
- foreach ($ chunks as $ i => $ chunk ) {
27
+ foreach ($ chunks as $ chunk ) {
28
28
$ lastPart = array_pop ($ chunk );
29
29
list ($ lastPart , $ mode ) = $ this ->extractMode ($ lastPart );
30
30
$ tests [] = [$ mode , array_merge ($ chunk , [$ lastPart ])];
@@ -61,7 +61,7 @@ private function extractMode(string $expected): array {
61
61
return [$ expected , null ];
62
62
}
63
63
64
- $ expected = ( string ) substr ($ expected , $ firstNewLine + 1 );
64
+ $ expected = substr ($ expected , $ firstNewLine + 1 );
65
65
return [$ expected , substr ($ firstLine , 2 )];
66
66
}
67
67
}
Original file line number Diff line number Diff line change @@ -15,11 +15,11 @@ public function testRawValue(): void {
15
15
$ this ->assertInstanceOf (Echo_::class, $ echo );
16
16
17
17
/** @var Echo_ $echo */
18
- $ lLumber = $ echo ->exprs [0 ];
19
- $ this ->assertInstanceOf (Float_::class, $ lLumber );
18
+ $ dnumber = $ echo ->exprs [0 ];
19
+ $ this ->assertInstanceOf (Float_::class, $ dnumber );
20
20
21
21
/** @var Float_ $dnumber */
22
- $ this ->assertSame (1234.56 , $ lLumber ->value );
23
- $ this ->assertSame ('1_234.56 ' , $ lLumber ->getAttribute ('rawValue ' ));
22
+ $ this ->assertSame (1234.56 , $ dnumber ->value );
23
+ $ this ->assertSame ('1_234.56 ' , $ dnumber ->getAttribute ('rawValue ' ));
24
24
}
25
25
}
Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ public function testRawValue(): void {
14
14
$ this ->assertInstanceOf (Echo_::class, $ echo );
15
15
16
16
/** @var Echo_ $echo */
17
- $ lLumber = $ echo ->exprs [0 ];
18
- $ this ->assertInstanceOf (Int_::class, $ lLumber );
17
+ $ lnumber = $ echo ->exprs [0 ];
18
+ $ this ->assertInstanceOf (Int_::class, $ lnumber );
19
19
20
20
/** @var Int_ $lnumber */
21
- $ this ->assertSame (1234 , $ lLumber ->value );
22
- $ this ->assertSame ('1_234 ' , $ lLumber ->getAttribute ('rawValue ' ));
21
+ $ this ->assertSame (1234 , $ lnumber ->value );
22
+ $ this ->assertSame ('1_234 ' , $ lnumber ->getAttribute ('rawValue ' ));
23
23
}
24
24
}
You can’t perform that action at this time.
0 commit comments