You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
444 B
18 lines
444 B
<?php
|
|
|
|
namespace RouterOS\Tests\Helpers;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use RouterOS\Helpers\TypeHelper;
|
|
|
|
class TypeHelperTest extends TestCase
|
|
{
|
|
public function testCheckIfTypeMismatch()
|
|
{
|
|
$test1 = TypeHelper::checkIfTypeMismatch(gettype(true), gettype(false));
|
|
$this->assertFalse($test1);
|
|
|
|
$test2 = TypeHelper::checkIfTypeMismatch(gettype(true), gettype('false'));
|
|
$this->assertTrue($test2);
|
|
}
|
|
}
|