Search in sources :

Example 41 with Memory

use of php.runtime.Memory in project jphp by jphp-compiler.

the class VariablesTest method testCompact.

@Test
public void testCompact() {
    Memory memory = includeResource("variables/compact.php");
    Assert.assertEquals("success", memory.toString());
}
Also used : Memory(php.runtime.Memory) Test(org.junit.Test)

Example 42 with Memory

use of php.runtime.Memory in project jphp by jphp-compiler.

the class VariablesTest method testReference.

@Test
public void testReference() {
    Memory memory = includeResource("variables/reference.php");
    Assert.assertEquals("foobar|foobar|foobar", memory.toString());
}
Also used : Memory(php.runtime.Memory) Test(org.junit.Test)

Example 43 with Memory

use of php.runtime.Memory in project jphp by jphp-compiler.

the class VariablesTest method testVarVar.

@Test
public void testVarVar() {
    Memory memory = includeResource("variables/var_var.php");
    Assert.assertEquals("success", memory.toString());
}
Also used : Memory(php.runtime.Memory) Test(org.junit.Test)

Example 44 with Memory

use of php.runtime.Memory in project jphp by jphp-compiler.

the class ClosuresTest method testSimple.

@Test
public void testSimple() {
    Memory memory = includeResource("closures/simple.php");
    Assert.assertEquals("success", memory.toString());
}
Also used : Memory(php.runtime.Memory) Test(org.junit.Test)

Example 45 with Memory

use of php.runtime.Memory in project jphp by jphp-compiler.

the class ConditionsTest method testElvis.

@Test
public void testElvis() {
    Memory memory = includeResource("conditions/elvis.php");
    Assert.assertEquals("success", memory.toString());
}
Also used : Memory(php.runtime.Memory) Test(org.junit.Test)

Aggregations

Memory (php.runtime.Memory)346 Test (org.junit.Test)124 ArrayMemory (php.runtime.memory.ArrayMemory)122 ObjectMemory (php.runtime.memory.ObjectMemory)75 LongMemory (php.runtime.memory.LongMemory)58 StringMemory (php.runtime.memory.StringMemory)58 ForeachIterator (php.runtime.lang.ForeachIterator)47 ReferenceMemory (php.runtime.memory.ReferenceMemory)40 KeyValueMemory (php.runtime.memory.KeyValueMemory)25 Invoker (php.runtime.invoke.Invoker)21 ArrayKeyMemory (php.runtime.memory.helper.ArrayKeyMemory)21 ArrayValueMemory (php.runtime.memory.helper.ArrayValueMemory)21 ShortcutMemory (php.runtime.memory.helper.ShortcutMemory)21 Environment (php.runtime.env.Environment)20 IObject (php.runtime.lang.IObject)19 UndefinedMemory (php.runtime.memory.helper.UndefinedMemory)16 ClassEntity (php.runtime.reflection.ClassEntity)16 TraceInfo (php.runtime.env.TraceInfo)12 File (java.io.File)7 LocalVariable (org.develnext.jphp.core.compiler.jvm.misc.LocalVariable)7