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() |
||
28 | |||
29 | protected function tearDown() |
||
32 | |||
33 | public function testShortBaseUri() |
||
38 | |||
39 | public function testFixedBaseUri() |
||
44 | } |
||
45 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: