Documentation

AutoCompleterTest extends TestCase
in package

Table of Contents

classesInput()  : array<string|int, mixed>
TODO ==== draft, open to modifications - [ ] if the variable is an array, return the square bracket for completion - [ ] if the variable is a constructor or method, reflect to complete as a function call - [ ] if the preceding token is a variable, call operators or keywords compatible for completion - [X] a command always should be the second token after php_open_tag - [X] keywords are never consecutive - [X] namespacing completion should work just fine - [X] after a new keyword, should always be a class constructor, never a function call or keyword, constant, or variable that does not contain a existing class name.
testClassesCompletion()  : mixed

Methods

classesInput()

TODO ==== draft, open to modifications - [ ] if the variable is an array, return the square bracket for completion - [ ] if the variable is a constructor or method, reflect to complete as a function call - [ ] if the preceding token is a variable, call operators or keywords compatible for completion - [X] a command always should be the second token after php_open_tag - [X] keywords are never consecutive - [X] namespacing completion should work just fine - [X] after a new keyword, should always be a class constructor, never a function call or keyword, constant, or variable that does not contain a existing class name.

public classesInput() : array<string|int, mixed>
  • [X] on a namespaced constructor the completion must show the classes related, not constants.
Return values
array<string|int, mixed>

testClassesCompletion()

public testClassesCompletion(string $line, array<string|int, mixed> $mustContain, array<string|int, mixed> $mustNotContain) : mixed
Parameters
$line : string
$mustContain : array<string|int, mixed>
$mustNotContain : array<string|int, mixed>
Tags
dataProvider

classesInput

Return values
mixed

Search results