| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 5 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 18 | class ConnectionTest extends \PHPUnit\Framework\TestCase |
||
| 19 | { |
||
| 20 | protected $shortUri = 'http://api.dev'; |
||
| 21 | |||
| 22 | protected $fixedUri = 'http://api.dev/'; |
||
| 23 | |||
| 24 | protected function setUp() |
||
| 25 | { |
||
| 26 | $this->db = new Connection(); |
||
|
|
|||
| 27 | } |
||
| 28 | |||
| 29 | protected function tearDown() |
||
| 30 | { |
||
| 31 | } |
||
| 32 | |||
| 33 | public function testShortBaseUri() |
||
| 34 | { |
||
| 35 | $this->db->baseUri = $this->shortUri; |
||
| 36 | $this->assertSame($this->fixedUri, $this->db->getBaseUri()); |
||
| 37 | } |
||
| 38 | |||
| 39 | public function testFixedBaseUri() |
||
| 43 | } |
||
| 44 | } |
||
| 45 |