1 | <?php |
||
3 | class AutoCompleteOptionTest extends ElasticsearchBaseTest { |
||
4 | |||
5 | public function setUp() { |
||
9 | |||
10 | public function testCanCreate() { |
||
14 | |||
15 | public function testCanDelete() { |
||
19 | |||
20 | public function testCanEdit() { |
||
24 | |||
25 | |||
26 | /* |
||
27 | Check that requireDefaultRecords only creates 3 options |
||
28 | - similar |
||
29 | - search |
||
30 | - go to record |
||
31 | */ |
||
32 | public function testRequireDefaultRecords() { |
||
45 | |||
46 | |||
47 | } |
||
48 |
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: