{
try
{
- $this->fixture->query("INSERT INTO test (textstuff) VALUES ('moo'), ('foo'), ('hey'), ('foo'), ('boo'), ('poo')");
+ $this->fixture->query("INSERT INTO test (textstuff) VALUES ('moo'), ('foo'), ('hey'), ('foo'), ('boo'), ('poo')");
}
catch (BSDbException $e)
{
}
}
+ public function testIterator()
+ {
+ $this->fixture->query("INSERT INTO test (textstuff) VALUES ('a'), ('b'), ('c')");
+ $result = $this->fixture->query("SELECT * FROM test");
+
+ $i = 0;
+ foreach ($result as $item)
+ {
+ $i++;
+ }
+
+ $this->assertEquals(3, $i);
+ }
+
public function testEscapeString()
{
$this->assertEquals("Robert\'s castle", $this->fixture->escapeString("Robert's castle"));