1 | <?php |
||
11 | class NotificationsControllerTest extends IntegrationTestCase |
||
12 | { |
||
13 | /** |
||
14 | * Fixtures. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | public $fixtures = array( |
||
19 | 'app.notifications', |
||
20 | 'app.developers', |
||
21 | 'app.reports', |
||
22 | 'app.incidents', |
||
23 | ); |
||
24 | |||
25 | public function setUp() |
||
30 | |||
31 | public function testMassAction() |
||
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: