Use assertInstanceOf (#286)

This commit is contained in:
Gabriel Caruso 2017-12-06 07:46:31 -02:00 committed by Adrien Crivelli
parent 8041a87f7a
commit dfcab0c13f
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ class HyperlinkTest extends TestCase
$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);
@ -47,7 +47,7 @@ class HyperlinkTest extends TestCase
$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);

View File

@ -19,7 +19,7 @@ class DataSeriesValuesTest extends TestCase
foreach ($dataTypeValues as $dataTypeValue) {
$result = $testInstance->setDataType($dataTypeValue);
self::assertTrue($result instanceof DataSeriesValues);
self::assertInstanceOf(DataSeriesValues::class, $result);
}
}

View File

@ -14,7 +14,7 @@ class LayoutTest extends TestCase
$testInstance = new Layout();
$result = $testInstance->setLayoutTarget($LayoutTargetValue);
self::assertTrue($result instanceof Layout);
self::assertInstanceOf(Layout::class, $result);
}
public function testGetLayoutTarget()