fabpot/PHP-CS-Fixer — pull request #492 by Nyholm (2014-08-29 15:31:24+00:00)
Title: Hhvm

I fixed the errors on on the test suit on HHVM. They are related to HHVM and not this lib. I created workarounds and made a comment about it.

I also fixed some failures that relied on the order of the fixers returned from `Fixer::getFixers`.

There are still failures that I have not managed to figure out a good workaround for. They are related to the `token_get_all` function. On HHVM `token_get_all` does not return the same output.
Example:
``` php

$expected = <<<'EOF'

array(3) {
[0] =>
int(374)
[1] =>
string(6) "
int(1)
}
[1] =>
array(3) {
[0] =>
int(310)
[1] =>
string(2) "$b"
[2] =>
int(2)
}
[2] =>
array(3) {
[0] =>
int(377)
[1] =>
string(1) " "
[2] =>
int(2)
}
[3] =>
string(1) "="
[4] =>
array(3) {
[0] =>
int(377)
[1] =>
string(1) " "
[2] =>
int(2)
}
[5] =>
array(3) {
[0] =>
int(378)
[1] =>
string(10) "<<<'TEXT'
"
[2] =>
int(2)
}
[6] =>
array(3) {
[0] =>
int(315)
[1] =>
string(30) "Foo TEXT;
Bar1}

FooFoo
TEXT;"
[2] =>
int(3)
}
}

```

``` php
//Prints on HHVM:

array(6) {
[0]=>
array(3) {
[0]=>
int(368)
[1]=>
string(6) "
int(1)
}
[1]=>
array(3) {
[0]=>
int(309)
[1]=>
string(2) "$b"
[2]=>
int(2)
}
[2]=>
array(3) {
[0]=>
int(371)
[1]=>
string(1) " "
[2]=>
int(2)
}
[3]=>
string(1) "="
[4]=>
array(3) {
[0]=>
int(371)
[1]=>
string(1) " "
[2]=>
int(2)
}
[5]=>
array(3) {
[0]=>
int(372)
[1]=>
string(10) "<<<'TEXT'
"
[2]=>
int(2)
}
}
```