Skip to content

Commit 9541ae8

Browse files
committed
assertSame
1 parent ae7e54c commit 9541ae8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/Test/Spreadsheet/Excel/Writer/ParserTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ public function testDuplicatePtgValues()
6464
// Original duplicates: 0x2F (commented), 0x4F (commented), 0x6F (active)
6565
$this->assertArrayHasKey('ptgMemNoMemN', $ptg,
6666
'ptgMemNoMemN key should exist in ptg array');
67-
$this->assertEquals(0x6F, $ptg['ptgMemNoMemN'],
67+
$this->assertSame(0x6F, $ptg['ptgMemNoMemN'],
6868
'ptgMemNoMemN should be 0x6F (the last duplicate), not 0x2F or 0x4F');
6969

7070
// Test ptgAreaErr3d - should have the LAST duplicate value
7171
// Original duplicates: 0x3D (commented), 0x5D (commented), 0x7D (active)
7272
$this->assertArrayHasKey('ptgAreaErr3d', $ptg,
7373
'ptgAreaErr3d key should exist in ptg array');
74-
$this->assertEquals(0x7D, $ptg['ptgAreaErr3d'],
74+
$this->assertSame(0x7D, $ptg['ptgAreaErr3d'],
7575
'ptgAreaErr3d should be 0x7D (the last duplicate), not 0x3D or 0x5D');
7676

7777
// Verify that the specific duplicated keys exist only once
@@ -92,16 +92,16 @@ public function testDuplicatePtgValues()
9292
}
9393

9494
// Should have exactly 2 ptgMemNoMem* keys: ptgMemNoMem and ptgMemNoMemN
95-
$this->assertEquals(2, $ptgMemNoMemCount,
95+
$this->assertSame(2, $ptgMemNoMemCount,
9696
'There should be exactly 2 ptgMemNoMem* keys: ptgMemNoMem and ptgMemNoMemN');
97-
$this->assertEquals(1, $ptgMemNoMemNCount,
97+
$this->assertSame(1, $ptgMemNoMemNCount,
9898
'There should be exactly one ptgMemNoMemN key');
99-
$this->assertEquals(1, $ptgAreaErr3dCount,
99+
$this->assertSame(1, $ptgAreaErr3dCount,
100100
'There should be exactly one ptgAreaErr3d key');
101101

102102
// Verify that ptgMemNoMem exists with value 0x28
103103
// (The duplicates at 0x48 and 0x68 are commented out per Excel spec)
104-
$this->assertEquals(0x28, $ptg['ptgMemNoMem'], 'ptgMemNoMem should be 0x28');
104+
$this->assertSame(0x28, $ptg['ptgMemNoMem'], 'ptgMemNoMem should be 0x28');
105105

106106
// Verify the incorrectly named variants don't exist
107107
$this->assertArrayNotHasKey('ptgMemNoMemV', $ptg,

0 commit comments

Comments
 (0)