Commit 00595fc5 authored by Marco Pivetta's avatar Marco Pivetta

#869 - DBAL-1293 - `assertInternalType` over `assertTrue(is_string())`

parent 4e42e4cb
......@@ -25,9 +25,7 @@ class DateTest extends \Doctrine\Tests\DbalTestCase
public function testDateConvertsToDatabaseValue()
{
$this->assertTrue(
is_string($this->_type->convertToDatabaseValue(new \DateTime(), $this->_platform))
);
$this->assertInternalType('string', $this->_type->convertToDatabaseValue(new \DateTime(), $this->_platform));
}
/**
......
......@@ -25,9 +25,7 @@ class TimeTest extends \Doctrine\Tests\DbalTestCase
public function testTimeConvertsToDatabaseValue()
{
$this->assertTrue(
is_string($this->_type->convertToDatabaseValue(new \DateTime(), $this->_platform))
);
$this->assertInternalType('string', $this->_type->convertToDatabaseValue(new \DateTime(), $this->_platform));
}
/**
......
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