for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class ErrorTest extends BridgeTestCase
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
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());
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.