Commit 5da58c38 authored by Tino Goratsch's avatar Tino Goratsch

replace some deprecated code inside PHPUnit tests

parent 5411d449
Pipeline #41700612 passed with stages
in 2 minutes and 11 seconds
......@@ -36,7 +36,7 @@ class CountryListTest extends \PHPUnit\Framework\TestCase
$actual = $this->countryList->worldCountries();
$this->assertInternalType('array', $actual);
$this->assertIsArray($actual);
$this->assertNotEmpty($actual);
}
......@@ -48,7 +48,7 @@ class CountryListTest extends \PHPUnit\Framework\TestCase
$actual = $this->countryList->worldCountries();
$this->assertInternalType('array', $actual);
$this->assertIsArray($actual);
$this->assertEmpty($actual);
}
......@@ -60,7 +60,7 @@ class CountryListTest extends \PHPUnit\Framework\TestCase
$actual = $this->countryList->worldCountries();
$this->assertInternalType('array', $actual);
$this->assertIsArray($actual);
$this->assertEmpty($actual);
}
}
......@@ -18,9 +18,9 @@ class BooleanColumnTypeTest extends AbstractColumnTypeTest
public function testDoEscape()
{
$this->assertInternalType('int', $this->columnType->doEscape('foo'));
$this->assertInternalType('int', $this->columnType->doEscape(0));
$this->assertInternalType('int', $this->columnType->doEscape('0'));
$this->assertInternalType('int', $this->columnType->doEscape(null));
$this->assertIsInt($this->columnType->doEscape('foo'));
$this->assertIsInt($this->columnType->doEscape(0));
$this->assertIsInt($this->columnType->doEscape('0'));
$this->assertIsInt($this->columnType->doEscape(null));
}
}
......@@ -18,8 +18,8 @@ class DoubleColumnTypeTest extends AbstractColumnTypeTest
public function testDoEscape()
{
$this->assertInternalType('double', $this->columnType->doEscape('foo'));
$this->assertInternalType('double', $this->columnType->doEscape('0.00'));
$this->assertInternalType('double', $this->columnType->doEscape('0'));
$this->assertIsFloat($this->columnType->doEscape('foo'));
$this->assertIsFloat($this->columnType->doEscape('0.00'));
$this->assertIsFloat($this->columnType->doEscape('0'));
}
}
......@@ -18,8 +18,8 @@ class IntegerColumnTypeTest extends AbstractColumnTypeTest
public function testDoEscape()
{
$this->assertInternalType('int', $this->columnType->doEscape('foo'));
$this->assertInternalType('int', $this->columnType->doEscape('0.00'));
$this->assertInternalType('int', $this->columnType->doEscape('0'));
$this->assertIsInt($this->columnType->doEscape('foo'));
$this->assertIsInt($this->columnType->doEscape('0.00'));
$this->assertIsInt($this->columnType->doEscape('0'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment