1234567891011121314 |
- <?php
- namespace Doctrine\Tests\DBAL;
- use Doctrine\DBAL\DBALException;
- class DBALExceptionTest extends \Doctrine\Tests\DbalTestCase
- {
- public function testDriverExceptionDuringQueryAcceptsBinaryData()
- {
- $e = DBALException::driverExceptionDuringQuery(new \Exception, '', array('ABC', chr(128)));
- $this->assertContains('with params ["ABC", "\x80"]', $e->getMessage());
- }
- }
|