Definition at line 27 of file DimensionTest.php.
◆ setUp()
◆ testCardinalInvalidValue()
DimensionTest::testCardinalInvalidValue |
( |
| ) |
|
Definition at line 75 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
78 $c = $this->f->cardinal();
79 $c->checkValue(
"A value");
80 $this->assertFalse(
"This should not happen.");
82 $this->assertTrue(
true);
◆ testCardinalNullValue()
DimensionTest::testCardinalNullValue |
( |
| ) |
|
◆ testCardinalNumericValues()
DimensionTest::testCardinalNumericValues |
( |
| ) |
|
Definition at line 50 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
53 $c = $this->f->cardinal();
57 $c->checkValue(
"1.5");
58 $this->assertTrue(
true);
60 $this->assertFalse(
"This should not happen.");
◆ testCardinaltLabels()
DimensionTest::testCardinaltLabels |
( |
| ) |
|
Definition at line 34 of file DimensionTest.php.
References $c.
36 $labels = [
"label1",
"label2",
"label3"];
37 $c = $this->f->cardinal($labels);
38 $this->assertEquals($labels,
$c->getLabels());
◆ testRangeInvalidArray()
DimensionTest::testRangeInvalidArray |
( |
| ) |
|
Definition at line 111 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
114 $c = $this->f->cardinal();
115 $r = $this->f->range(
$c);
117 $this->assertFalse(
"This should not happen.");
119 $this->assertTrue(
true);
◆ testRangeInvalidCount()
DimensionTest::testRangeInvalidCount |
( |
| ) |
|
Definition at line 123 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
126 $c = $this->f->cardinal();
127 $r = $this->f->range(
$c);
129 $this->assertFalse(
"This should not happen.");
131 $this->assertTrue(
true);
◆ testRangeInvalidValues()
DimensionTest::testRangeInvalidValues |
( |
| ) |
|
Definition at line 135 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
138 $c = $this->f->cardinal();
139 $r = $this->f->range(
$c);
140 $r->checkValue([2,
"A value"]);
141 $this->assertFalse(
"This should not happen.");
143 $this->assertTrue(
true);
◆ testRangeLabels()
DimensionTest::testRangeLabels |
( |
| ) |
|
Definition at line 41 of file DimensionTest.php.
References $c.
43 $labels = [
"label1",
"label2",
"label3"];
44 $c = $this->f->cardinal($labels);
45 $r = $this->f->range(
$c);
46 $this->assertEquals($labels, $r->getLabels());
47 $this->assertEquals(
$c->getLabels(), $r->getLabels());
◆ testRangeNullValue()
DimensionTest::testRangeNullValue |
( |
| ) |
|
Definition at line 86 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
89 $c = $this->f->cardinal();
90 $r = $this->f->range(
$c);
92 $this->assertTrue(
true);
94 $this->assertFalse(
"This should not happen.");
◆ testRangeNumericValues()
DimensionTest::testRangeNumericValues |
( |
| ) |
|
Definition at line 98 of file DimensionTest.php.
References $c, and Vendor\Package\$e.
101 $c = $this->f->cardinal();
102 $r = $this->f->range(
$c);
103 $r->checkValue([-2, 0]);
104 $r->checkValue([0.5,
"1.5"]);
105 $this->assertTrue(
true);
107 $this->assertFalse(
"This should not happen.");
The documentation for this class was generated from the following file: