Typehinting merge #50

Sammanfogat
belliash sammanfogade 298 incheckningar från typehinting in i master 2019-04-17 11:27:52 +02:00
2 ändrade filer med 20 tillägg och 0 borttagningar
Showing only changes of commit 6b86f4c855 - Show all commits

19
tests/assertion_test.aer Normal file
Visa fil

@ -0,0 +1,19 @@
class Program {
void test_assert(mixed $param) {
assert("is_bool($param);");
}
void main() {
callback $a = void(string $file, int $line, string $code) {
print("Assertion failed ...\n");
};
assert_options(ASSERT_ACTIVE, true);
assert_options(ASSERT_BAIL, false);
assert_options(ASSERT_WARNING, false);
assert_options(ASSERT_CALLBACK, $a);
$this->test_assert(true);
$this->test_assert(1);
}
}

1
tests/assertion_test.exp Normal file
Visa fil

@ -0,0 +1 @@
Assertion failed ...