Ejemplo n.º 1
0
 public function testFindFirstBySql()
 {
     $sql = "SELECT id, integer_value FROM unit_tests\n                 WHERE text_value=:text ORDER BY integer_value";
     $test = UnitTest::findBySql('first', $sql, array(':text' => 'string a'));
     $this->assertEquals('1', $test->integer_value);
 }