Skip to content

Commit 2d3120b

Browse files
committed
explanatory comments
1 parent 30f10c8 commit 2d3120b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/EventSerializerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function testNonStringAttributes()
249249
$this->assertSame('7', $json['avatar']);
250250
$this->assertSame('8', $json['firstName']);
251251
$this->assertSame('9', $json['lastName']);
252-
$this->assertSame(true, $json['anonymous']);
253-
$this->assertSame(10, $json['custom']['foo']);
252+
$this->assertSame(true, $json['anonymous']); // We do NOT want "anonymous" to be stringified
253+
$this->assertSame(10, $json['custom']['foo']); // We do NOT want custom attribute values to be stringified
254254
}
255255
}

0 commit comments

Comments
 (0)