Blame view

sources/3rdparty/doctrine/dbal/tests/Doctrine/Tests/DBAL/DBALExceptionTest.php 400 Bytes
31b7f2792   Kload   Upgrade to ownclo...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?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());
      }
  }