function test_find_by_sql_returns_iterator() { $deps = DepartmentRecord::finder()->findAll('department_id < :id', array('id' => 5)); $this->assertEquals(count($deps), 4); }