1 | <?php |
||
5 | class DeploymentTest extends \PHPUnit_Framework_TestCase |
||
6 | { |
||
7 | protected $faker; |
||
8 | protected $previousVersion; |
||
9 | protected $currentVersion; |
||
10 | protected $environment; |
||
11 | protected $server; |
||
12 | |||
13 | public function setUp() |
||
28 | |||
29 | public function testGetEnvironment() |
||
36 | |||
37 | public function testGetPreviousVersion() |
||
44 | |||
45 | public function testGetCurrentVersion() |
||
52 | |||
53 | public function testGetServer() |
||
60 | } |
||
61 |
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: