$this->assertType($expectedPhpType,$actualDbValue,"The expected type from the conversion to and back from the database should be ".$expectedPhpType);
if($originalValueinstanceof\DateTime){
$this->assertInstanceOf($expectedPhpType,$actualDbValue,"The expected type from the conversion to and back from the database should be ".$expectedPhpType);
}else{
$this->assertInternalType($expectedPhpType,$actualDbValue,"The expected type from the conversion to and back from the database should be ".$expectedPhpType);
}
if($type!=="datetimetz"){
$this->assertEquals($originalValue,$actualDbValue,"Conversion between values should produce the same out as in value, but doesnt!");
@@ -156,7 +156,7 @@ class MsSqlPlatformTest extends AbstractPlatformTestCase
publicfunctiontestModifyLimitQueryWithOffset()
{
$sql=$this->_platform->modifyLimitQuery('SELECT * FROM user ORDER BY username DESC',10,5);
$this->assertEquals('WITH outer_tbl AS (SELECT ROW_NUMBER() OVER (ORDER BY username DESC) AS "doctrine_rownum", * FROM (SELECT * FROM user) AS inner_tbl) SELECT * FROM outer_tbl WHERE "doctrine_rownum" BETWEEN 6 AND 15',$sql);
$this->assertEquals('SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY username DESC) AS "doctrine_rownum", * FROM user) AS doctrine_tbl WHERE "doctrine_rownum" BETWEEN 6 AND 15',$sql);