Skip to content

Commit

Permalink
Use non-deprecated assertIsArray in favor of assertInternalType
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Schneider committed Jun 5, 2019
1 parent cd3018d commit a8bcdba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/Events/RequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function testJsonSerializes()
$request->stop();

$serialized = $request->jsonSerialize();
$this->assertInternalType('array', $serialized);
$this->assertIsArray($serialized);
$this->assertArrayHasKey("StartRequest", reset($serialized));
$this->assertArrayHasKey("TagRequest", next($serialized));

Expand Down
2 changes: 1 addition & 1 deletion tests/Events/SpanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function testJsonSerializes()

$serialized = $span->jsonSerialize();

$this->assertInternalType('array', $serialized);
$this->assertIsArray($serialized);
$this->assertArrayHasKey("StartSpan", $serialized[0]);
$this->assertArrayHasKey("TagSpan", $serialized[1]);
$this->assertArrayHasKey("StopSpan", $serialized[2]);
Expand Down
2 changes: 1 addition & 1 deletion tests/Events/TagRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testJsonSerializes()

$serialized = $tag->jsonSerialize();

$this->assertInternalType('array', $serialized);
$this->assertIsArray($serialized);
$this->assertArrayHasKey("TagRequest", $serialized[0]);

$data = $serialized[0]["TagRequest"];
Expand Down
2 changes: 1 addition & 1 deletion tests/Events/TagSpanTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testJsonSerializes()

$serialized = $tag->jsonSerialize();

$this->assertInternalType('array', $serialized);
$this->assertIsArray($serialized);
$this->assertArrayHasKey("TagSpan", $serialized[0]);

$data = $serialized[0]["TagSpan"];
Expand Down

0 comments on commit a8bcdba

Please sign in to comment.