| Total Complexity | 5 |
| Total Lines | 61 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Bpack247Test extends PHPUnit_Framework_TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Bpack247 |
||
| 12 | */ |
||
| 13 | private $bpack247; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Prepares the environment before running a test. |
||
| 17 | */ |
||
| 18 | protected function setUp() |
||
| 19 | { |
||
| 20 | parent::setUp(); |
||
| 21 | $this->bpack247 = new Bpack247(BPACK_EMAIL, BPACK_PASSPHRASE); |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Cleans up the environment after running a test. |
||
| 26 | */ |
||
| 27 | protected function tearDown() |
||
| 28 | { |
||
| 29 | $this->bpack247 = null; |
||
| 30 | parent::tearDown(); |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * Tests Bpack247->getTimeOut() |
||
| 35 | */ |
||
| 36 | public function testGetTimeOut() |
||
| 37 | { |
||
| 38 | $this->bpack247->setTimeOut(5); |
||
| 39 | $this->assertSame(5, $this->bpack247->getTimeOut()); |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Tests Bpack247->getUserAgent() |
||
| 44 | */ |
||
| 45 | public function testGetUserAgent() |
||
| 46 | { |
||
| 47 | $this->bpack247->setUserAgent('testing/1.0.0'); |
||
| 48 | $this->assertSame( |
||
| 49 | 'PHP Bpost Bpack247/' . Bpack247::VERSION . ' testing/1.0.0', |
||
| 50 | $this->bpack247->getUserAgent() |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * Tests Bpack247->getMember() |
||
| 56 | */ |
||
| 57 | public function testGetMember() |
||
| 69 | } |
||
| 70 | } |
||
| 71 |
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