Skip to content

Commit

Permalink
Use assertInstanceOf (#286)
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel authored and PowerKiKi committed Dec 6, 2017
1 parent 8041a87 commit dfcab0c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/PhpSpreadsheetTests/Cell/HyperlinkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testSetUrl()

$testInstance = new Hyperlink($initialUrlValue);
$result = $testInstance->setUrl($newUrlValue);
self::assertTrue($result instanceof Hyperlink);
self::assertInstanceOf(Hyperlink::class, $result);

$result = $testInstance->getUrl();
self::assertEquals($newUrlValue, $result);
Expand All @@ -47,7 +47,7 @@ public function testSetTooltip()

$testInstance = new Hyperlink(null, $initialTooltipValue);
$result = $testInstance->setTooltip($newTooltipValue);
self::assertTrue($result instanceof Hyperlink);
self::assertInstanceOf(Hyperlink::class, $result);

$result = $testInstance->getTooltip();
self::assertEquals($newTooltipValue, $result);
Expand Down
2 changes: 1 addition & 1 deletion tests/PhpSpreadsheetTests/Chart/DataSeriesValuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function testSetDataType()

foreach ($dataTypeValues as $dataTypeValue) {
$result = $testInstance->setDataType($dataTypeValue);
self::assertTrue($result instanceof DataSeriesValues);
self::assertInstanceOf(DataSeriesValues::class, $result);
}
}

Expand Down
2 changes: 1 addition & 1 deletion tests/PhpSpreadsheetTests/Chart/LayoutTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function testSetLayoutTarget()
$testInstance = new Layout();

$result = $testInstance->setLayoutTarget($LayoutTargetValue);
self::assertTrue($result instanceof Layout);
self::assertInstanceOf(Layout::class, $result);
}

public function testGetLayoutTarget()
Expand Down

0 comments on commit dfcab0c

Please sign in to comment.