Add more tests
All checks were successful
The build was successful.

This commit is contained in:
2018-08-07 17:16:28 +02:00
parent 7711bdb6bc
commit c419b8605d
4 changed files with 95 additions and 0 deletions

27
tests/type_juggle.aer Normal file
View File

@@ -0,0 +1,27 @@
class Main {
function __construct() {
$foo = '0';
var_dump($foo);
$foo += 2;
var_dump($foo);
$foo = 1;
var_dump($foo);
$foo += 1.3;
var_dump($foo);
$foo = 5 + "10 Little Piggies";
var_dump($foo);
$foo = 5 + 10;
var_dump($foo);
$foo = 'car';
$foo[0] = 'b';
var_dump($foo);
$foo = 10;
$foo = (bool) $foo;
var_dump($foo);
$foo = '';
var_dump($foo);
}
}
new Main();