for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class ErrorTest extends BridgeTestCase
{
public function testErrno()
$this->bridge->query('SELECT * FROM test_table');
$this->assertEquals(0, $this->bridge->errno());
$this->bridge->query('SELECT * FROM nowhere');
$this->assertEquals(1146, $this->bridge->errno());
}
public function testError()
$this->assertEquals("", $this->bridge->error());
$this->assertContains("doesn't exist", $this->bridge->error());