- $this->assertRegExp('/two/', $oErr->getSqlDebugDump());
- }
-
- public function testChksqlThrows()
- {
- $this->expectException(DatabaseError::class);
- $this->expectExceptionMessage('My custom error message');
- $this->expectExceptionCode(500);
-
- $oDB = new \DB_Error;
- $this->assertEquals(false, chksql($oDB, 'My custom error message'));