Use assertInstanceOf (#286)
This commit is contained in:
parent
8041a87f7a
commit
dfcab0c13f
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue