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