Class BackgroundTaskTest.
More...
Class BackgroundTaskTest.
- Author
- Oskar Truffer ot@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Definition at line 43 of file ValueTest.php.
◆ testIntegerValue()
ValueTest::testIntegerValue |
( |
| ) |
|
Definition at line 45 of file ValueTest.php.
48 $integer->setValue(3);
50 $integer2->setValue(3);
52 $integer3->setValue(4);
54 $this->assertEquals(3, $integer->getValue());
55 $this->assertTrue($integer->equals($integer2));
56 $this->assertSame($integer->getHash(), $integer2->getHash());
57 $this->assertNotSame($integer->getHash(), $integer3->getHash());
58 $integer3->unserialize($integer->serialize());
59 $this->assertTrue($integer->equals($integer3));
60 $this->assertTrue($integer->getType()->equals(
new SingleType(IntegerValue::class)));
◆ testListValue()
ValueTest::testListValue |
( |
| ) |
|
Definition at line 63 of file ValueTest.php.
66 $list->setValue([1, 2, 3]);
68 $this->assertTrue($list->getType()->equals(
new ListType(IntegerValue::class)));
72 $integer1->setValue(1);
74 $string->setValue(
"1");
75 $list2->setValue([$integer1, $string]);
77 $this->assertTrue($list2->getType()->equals(
new ListType(ScalarValue::class)));
The documentation for this class was generated from the following file: