11 require_once(
"libs/composer/vendor/autoload.php");
28 $integer->setValue(3);
30 $integer2->setValue(3);
32 $integer3->setValue(4);
34 $this->assertEquals($integer->getValue(), 3);
35 $this->assertTrue($integer->equals($integer2));
36 $this->assertEquals($integer->getHash(), $integer2->getHash());
37 $this->assertNotEquals($integer->getHash(), $integer3->getHash());
38 $integer3->unserialize($integer->serialize());
39 $this->assertTrue($integer->equals($integer3));
40 $this->assertTrue($integer->getType()->equals(
new SingleType(IntegerValue::class)));
46 $list->setValue([1, 2, 3]);
50 $integer1->setValue(1);
52 $string->setValue(
"1");
53 $list2->setValue([$integer1, $string]);
55 $this->assertTrue(
$list->getType()->equals(
new ListType(IntegerValue::class)));
56 $this->assertTrue($list2->getType()->equals(
new ListType(ScalarValue::class)));
if(isset($_REQUEST['delete'])) $list
Class BackgroundTaskTest.