| 1 | <?php |
||
| 8 | class Test extends TestCase |
||
| 9 | { |
||
| 10 | public function setup() |
||
| 23 | |||
| 24 | public function tearDown() |
||
| 28 | |||
| 29 | public function dispatch($job, $params = []) |
||
| 33 | |||
| 34 | public function get($class) |
||
| 38 | |||
| 39 | public function getMapper() |
||
| 43 | |||
| 44 | public function find($space, $params = []) |
||
| 48 | |||
| 49 | public function findOne($space, $params = []) |
||
| 53 | } |
||
| 54 |
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: