Definition at line 26 of file DimensionTest.php.
◆ setUp()
◆ testCardinalInvalidValue()
DimensionTest::testCardinalInvalidValue |
( |
| ) |
|
Definition at line 76 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
79 $c = $this->f->cardinal();
80 $c->checkValue(
"A value");
81 $this->assertFalse(
"This should not happen.");
83 $this->assertTrue(
true);
◆ testCardinalNullValue()
DimensionTest::testCardinalNullValue |
( |
| ) |
|
Definition at line 65 of file DimensionTest.php.
References $c, Vendor\Package\$e, and null.
68 $c = $this->f->cardinal();
70 $this->assertTrue(
true);
72 $this->assertFalse(
"This should not happen.");
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testCardinalNumericValues()
DimensionTest::testCardinalNumericValues |
( |
| ) |
|
Definition at line 51 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
54 $c = $this->f->cardinal();
58 $c->checkValue(
"1.5");
59 $this->assertTrue(
true);
61 $this->assertFalse(
"This should not happen.");
◆ testCardinaltLabels()
DimensionTest::testCardinaltLabels |
( |
| ) |
|
Definition at line 35 of file DimensionTest.php.
References $c.
37 $labels = [
"label1",
"label2",
"label3"];
38 $c = $this->f->cardinal($labels);
39 $this->assertEquals($labels,
$c->getLabels());
◆ testRangeInvalidArray()
DimensionTest::testRangeInvalidArray |
( |
| ) |
|
◆ testRangeInvalidCount()
DimensionTest::testRangeInvalidCount |
( |
| ) |
|
◆ testRangeInvalidValues()
DimensionTest::testRangeInvalidValues |
( |
| ) |
|
Definition at line 136 of file DimensionTest.php.
References $c, Vendor\Package\$e, and $r.
139 $c = $this->f->cardinal();
140 $r = $this->f->range(
$c);
141 $r->checkValue([2,
"A value"]);
142 $this->assertFalse(
"This should not happen.");
144 $this->assertTrue(
true);
◆ testRangeLabels()
DimensionTest::testRangeLabels |
( |
| ) |
|
Definition at line 42 of file DimensionTest.php.
References $c, and $r.
44 $labels = [
"label1",
"label2",
"label3"];
45 $c = $this->f->cardinal($labels);
46 $r = $this->f->range(
$c);
47 $this->assertEquals($labels,
$r->getLabels());
48 $this->assertEquals(
$c->getLabels(),
$r->getLabels());
◆ testRangeNullValue()
DimensionTest::testRangeNullValue |
( |
| ) |
|
Definition at line 87 of file DimensionTest.php.
References $c, Vendor\Package\$e, $r, and null.
90 $c = $this->f->cardinal();
91 $r = $this->f->range(
$c);
93 $this->assertTrue(
true);
95 $this->assertFalse(
"This should not happen.");
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testRangeNumericValues()
DimensionTest::testRangeNumericValues |
( |
| ) |
|
Definition at line 99 of file DimensionTest.php.
References $c, Vendor\Package\$e, and $r.
102 $c = $this->f->cardinal();
103 $r = $this->f->range(
$c);
104 $r->checkValue([-2, 0]);
105 $r->checkValue([0.5,
"1.5"]);
106 $this->assertTrue(
true);
108 $this->assertFalse(
"This should not happen.");
◆ $f
The documentation for this class was generated from the following file: