1 | <?php |
||
15 | class PageTest extends TestCase |
||
16 | { |
||
17 | private $page, $created, $updated; |
||
|
|||
18 | |||
19 | protected function setUp() |
||
25 | |||
26 | public function testGetId() |
||
30 | |||
31 | public function testGetTitle() |
||
35 | |||
36 | public function testGetCreated() |
||
40 | |||
41 | public function testGetUpdated() |
||
45 | |||
46 | public function testIsDraft() |
||
50 | } |
Only declaring a single property per statement allows you to later on add doc comments more easily.
It is also recommended by PSR2, so it is a common style that many people expect.