mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 18:14:26 +02:00
Check variable type during toDB() test. Optimized toDB() for non-string types.
This commit is contained in:
@@ -457,7 +457,7 @@ while($row = $sql->fetch())
|
||||
$parm = varset($var['parm']);
|
||||
|
||||
$result = $this->tp->toDB($var['input'], false, false, $mode, $parm);
|
||||
$this->assertEquals($var['expected'], $result, 'Test #'.$k." failed.". print_r($this->tp->getRemoved(),true));
|
||||
$this->assertSame($var['expected'], $result, 'Test #'.$k." failed.". print_r($this->tp->getRemoved(),true));
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user