| Total Complexity | 7 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ExceptionTest extends \PHPUnit_Framework_TestCase |
||
|
|
|||
| 8 | { |
||
| 9 | public function setUp() |
||
| 10 | { |
||
| 11 | $this->tr = new TranslateClient(); |
||
| 12 | } |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @expectedException BadMethodCallException |
||
| 16 | */ |
||
| 17 | public function testBadMethodCallException() |
||
| 18 | { |
||
| 19 | $this->tr->fooBar('baz'); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @expectedException InvalidArgumentException |
||
| 24 | */ |
||
| 25 | public function testInvalidArgumentException() |
||
| 26 | { |
||
| 27 | $this->tr->translate(); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @expectedException InvalidArgumentException |
||
| 32 | */ |
||
| 33 | public function testInvalidArgumentException2() |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @expectedException BadMethodCallException |
||
| 40 | */ |
||
| 41 | public function testStaticBadMethodCallException() |
||
| 42 | { |
||
| 43 | TranslateClient::fooBar('baz'); |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @expectedException InvalidArgumentException |
||
| 48 | */ |
||
| 49 | public function testStaticInvalidArgumentException() |
||
| 50 | { |
||
| 51 | TranslateClient::translate(); |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @expectedException InvalidArgumentException |
||
| 56 | */ |
||
| 57 | public function testStaticInvalidArgumentException2() |
||
| 60 | } |
||
| 61 | } |
||
| 62 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths