Completed
Push — b/update_guzzle ( 16f2fc...3512e8 )
by
unknown
07:47
created

PDOExceptionTest::testInstantiation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
/**
3
 * Licensed to CRATE Technology GmbH("Crate") under one or more contributor
4
 * license agreements.  See the NOTICE file distributed with this work for
5
 * additional information regarding copyright ownership.  Crate licenses
6
 * this file to you under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.  You may
8
 * obtain a copy of the License at
9
 *
10
 * http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
15
 * License for the specific language governing permissions and limitations
16
 * under the License.
17
 *
18
 * However, if you have executed another commercial license agreement
19
 * with Crate these terms will supersede the license and you may use the
20
 * software solely pursuant to the terms of the relevant commercial agreement.
21
 */
22
23
namespace CrateTest\PDO\Exception;
24
25
use Crate\PDO\Exception\PDOException;
26
use PHPUnit_Framework_TestCase;
27
28
/**
29
 * Tests for {@see \Crate\PDO\Exception\PDOException}
30
 *
31
 * @coverDefaultClass \Create\PDO\Exception\PDOException
32
 *
33
 * @group unit
34
 */
35
class PDOExceptionTest extends PHPUnit_Framework_TestCase
36
{
37
    public function testInstantiation()
38
    {
39
        $exception = new PDOException();
40
41
        $this->assertInstanceOf('PDOException', $exception);
42
        $this->assertInstanceOf('Crate\PDO\Exception\ExceptionInterface', $exception);
43
    }
44
}
45