Class BackgroundTaskTest.
More...
Class BackgroundTaskTest.
disabled disabled disabled
- Author
- Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Definition at line 23 of file ValueTest.php.
◆ testIntegerValue()
ValueTest::testIntegerValue |
( |
| ) |
|
Definition at line 25 of file ValueTest.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)));
◆ testListValue()
ValueTest::testListValue |
( |
| ) |
|
Definition at line 43 of file ValueTest.php.
References $list.
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
The documentation for this class was generated from the following file: