<?php $a=8; $b=4; $c=8; echo $a|$b&$c?>
<?php

// preparations:
class MyClass {
    function doSomething() {}
}
$var = new MyClass();

// test method completion after symbolic operator:
$var->doSomething() &&  $var->doSomething();

// test method completion after literal  operator:
$var->doSomething() and $var->doSomething();

// test class    after new:
new MyClass;

// test variable after new:
new $var;

// test variable after new in function declaration:
function moo($a) {
    $b = 5;
    new $a;
}

// bug 208866 - test completion for case insensitive class names
$a = new domdocument();
echo $a->loadHTML("");

// test function completion in class body:
class MyClass1 {
    func
}