use of php.runtime.Memory in project jphp by jphp-compiler.
the class UserFunctionTest method testArrayReferenceDefault.
@Test
public void testArrayReferenceDefault() {
Memory memory = includeResource("user_function/with_reference_default.php");
Assert.assertEquals(100520, memory.toLong());
}
use of php.runtime.Memory in project jphp by jphp-compiler.
the class UserFunctionTest method testWithConstDefault.
@Test
public void testWithConstDefault() {
Memory memory = includeResource("user_function/with_const_default.php");
Assert.assertEquals("success", memory.toString());
}
use of php.runtime.Memory in project jphp by jphp-compiler.
the class UserFunctionTest method testWithArrayDefault.
@Test
public void testWithArrayDefault() {
Memory memory = includeResource("user_function/with_array_default.php");
Assert.assertEquals(10, memory.toLong());
}
use of php.runtime.Memory in project jphp by jphp-compiler.
the class UserFunctionTest method testNested.
@Test
public void testNested() {
Memory memory = includeResource("user_function/nested.php");
Assert.assertEquals("success", memory.toString());
}
use of php.runtime.Memory in project jphp by jphp-compiler.
the class UserFunctionTest method testWithParams.
@Test
public void testWithParams() {
Memory memory = includeResource("user_function/with_params.php");
Assert.assertEquals(6, memory.toLong());
}
Aggregations