DBALExceptionTest.php 400 B

1234567891011121314
  1. <?php
  2. namespace Doctrine\Tests\DBAL;
  3. use Doctrine\DBAL\DBALException;
  4. class DBALExceptionTest extends \Doctrine\Tests\DbalTestCase
  5. {
  6. public function testDriverExceptionDuringQueryAcceptsBinaryData()
  7. {
  8. $e = DBALException::driverExceptionDuringQuery(new \Exception, '', array('ABC', chr(128)));
  9. $this->assertContains('with params ["ABC", "\x80"]', $e->getMessage());
  10. }
  11. }