Total Complexity | 3 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class ConnectionTest extends AbstractTestCase |
||
15 | { |
||
16 | /** |
||
17 | * @var MockInterface |
||
18 | */ |
||
19 | private $optionsMock; |
||
20 | |||
21 | public function setUp() |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @throws \Exception |
||
30 | */ |
||
31 | public function testConnect() |
||
32 | { |
||
33 | /** @var ConnectionInterface $connection */ |
||
34 | $connection = $this->createConnection('phpunit_default')->connect(); |
||
35 | $result = $connection->expr('foo'); |
||
36 | |||
37 | $this->assertInstanceOf(ResponseInterface::class, $result); |
||
38 | $this->assertEquals('foo', $result->getData()); |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @throws \Exception |
||
43 | */ |
||
44 | public function testServer() |
||
51 | } |
||
52 | } |
||
53 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.