Beispiel #1
0
 public function testFindCountBySql()
 {
     $sql = "SELECT count(1) FROM unit_tests WHERE text_value=:text";
     $testCnt = UnitTest::countBySql($sql, array(':text' => 'string a'));
     $this->assertEquals('2', $testCnt);
 }