1 | <?php |
||
22 | abstract class PdoQueueTest extends QueueTest |
||
23 | { |
||
24 | use Concurrency; |
||
25 | use Performance; |
||
26 | use Util; |
||
27 | |||
28 | public function getUnsupportedItemTypes() |
||
32 | |||
33 | /** |
||
34 | * @dataProvider provideItemsOfUnsupportedTypes |
||
35 | * @expectedException PHPUnit_Framework_Exception |
||
36 | * @expectedExceptionMessageRegExp /expects parameter 1 to be string|Binary strings are not identical/ |
||
37 | */ |
||
38 | public function testUnsupportedItemType($item, $type) |
||
46 | |||
47 | /** |
||
48 | * @dataProvider provideQueueInterfaceMethods |
||
49 | */ |
||
50 | public function testThrowExceptionOnMalformedSql($method) |
||
67 | |||
68 | /** |
||
69 | * @expectedException InvalidArgumentException |
||
70 | * @expectedExceptionMessage PDO driver "foobar" is unsupported |
||
71 | */ |
||
72 | public function testThrowExceptionOnUnsupportedDriver() |
||
82 | } |
||
83 |