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 16 of file TypeTest.php.
◆ testAncestors()
TypeTest::testAncestors |
( |
| ) |
|
Definition at line 18 of file TypeTest.php.
19 {
21 $ancestors = $integer->getAncestors();
22
23 $this->assertTrue($ancestors[0]->equals(
new SingleType(\ilObject::class)));
24 $this->assertTrue($ancestors[1]->equals(
new SingleType(\ilObjUser::class)));
25 }
◆ testListAncestor()
TypeTest::testListAncestor |
( |
| ) |
|
Definition at line 36 of file TypeTest.php.
37 {
39 $ancestors = $integerList->getAncestors();
40
41 $this->assertTrue($ancestors[0]->equals(
new ListType(\ilObject::class)));
42 $this->assertTrue($ancestors[1]->equals(
new ListType(\ilObjUser::class)));
43 }
◆ testListOfLists()
TypeTest::testListOfLists |
( |
| ) |
|
Definition at line 45 of file TypeTest.php.
46 {
48 $list1 =
new ListType(\ilObject::class);
51
52 $this->assertTrue($listlist->equals(
new ListType(
new ListType(\ilObjUser::class))));
53 $this->assertTrue($listlist->isExtensionOf($listlist1));
54 $this->assertFalse($listlist1->isExtensionOf($listlist));
55 }
if(isset($_REQUEST['delete'])) $list
References $list.
◆ testListSubtypes()
TypeTest::testListSubtypes |
( |
| ) |
|
Definition at line 27 of file TypeTest.php.
28 {
31
32 $this->assertTrue($scalarList3->isExtensionOf($scalarList));
33 $this->assertTrue($scalarList->isExtensionOf($scalarList));
34 }
◆ testTuple()
Definition at line 57 of file TypeTest.php.
58 {
61
62 $this->assertEquals($tuple1->__toString(), '(ilObjUser, [ilObject])');
63 $this->assertTrue($tuple2->isExtensionOf($tuple1));
64 $this->assertFalse($tuple1->isExtensionOf($tuple2));
65 }
The documentation for this class was generated from the following file: