Skip to content

Commit 929fc1d

Browse files
committed
test: modify assert
Signed-off-by: takuyanakazawa <[email protected]>
1 parent 2108075 commit 929fc1d

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Diff for: tests/Serializers/SmartSerializerTest.php

-8
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ public function testDeserializeJsonWithKebabCaseContentTypeHeader(): void
6565

6666
$result = $this->serializer->deserialize($data, $headers);
6767

68-
$this->assertIsArray($result);
6968
$this->assertArrayHasKey('foo', $result);
7069
$this->assertEquals('bar', $result['foo']);
7170
}
@@ -77,8 +76,6 @@ public function testDeserializeJsonWithKebabCaseArrayContentTypeHeader(): void
7776

7877
$result = $this->serializer->deserialize($data, $headers);
7978

80-
$this->assertIsArray($result);
81-
$this->assertArrayHasKey('foo', $result);
8279
$this->assertEquals('bar', $result['foo']);
8380
}
8481

@@ -89,8 +86,6 @@ public function testDeserializeJsonWithSnakeCaseContentTypeHeader(): void
8986

9087
$result = $this->serializer->deserialize($data, $headers);
9188

92-
$this->assertIsArray($result);
93-
$this->assertArrayHasKey('foo', $result);
9489
$this->assertEquals('bar', $result['foo']);
9590
}
9691

@@ -101,8 +96,6 @@ public function testDeserializeJsonWithoutContentTypeHeader(): void
10196

10297
$result = $this->serializer->deserialize($data, $headers);
10398

104-
$this->assertIsArray($result);
105-
$this->assertArrayHasKey('foo', $result);
10699
$this->assertEquals('bar', $result['foo']);
107100
}
108101

@@ -113,7 +106,6 @@ public function testDeserializeNonJsonData(): void
113106

114107
$result = $this->serializer->deserialize($data, $headers);
115108

116-
$this->assertIsString($result);
117109
$this->assertEquals('plain text data', $result);
118110
}
119111
}

0 commit comments

Comments
 (0)