-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathIntConstTest.php
More file actions
69 lines (58 loc) · 1.48 KB
/
IntConstTest.php
File metadata and controls
69 lines (58 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?php
declare(strict_types=1);
namespace PHPJava\Tests\Cases;
class IntConstTest extends Base
{
protected $fixtures = [
'IntConstTest',
];
private function call($method)
{
$calculatedValue = static::$initiatedJavaClasses['IntConstTest']
->getInvoker()
->getStatic()
->getMethods()
->call($method);
return $calculatedValue->getValue();
}
public function testIntConst0()
{
$actual = $this->call('intConst0');
$this->assertEquals(0, $actual);
}
public function testIntConst1()
{
$actual = $this->call('intConst1');
$this->assertEquals(1, $actual);
}
public function testIntConst2()
{
$actual = $this->call('intConst2');
$this->assertEquals(2, $actual);
}
public function testIntConst3()
{
$actual = $this->call('intConst3');
$this->assertEquals(3, $actual);
}
public function testIntConst4()
{
$actual = $this->call('intConst4');
$this->assertEquals(4, $actual);
}
public function testIntConst5()
{
$actual = $this->call('intConst5');
$this->assertEquals(5, $actual);
}
public function testIntConstM1()
{
$actual = $this->call('intConstM1');
$this->assertEquals(-1, $actual);
}
public function testIntPush123()
{
$actual = $this->call('intPush123');
$this->assertEquals(123, $actual);
}
}