Definition at line 15 of file PositiveIntegerTest.php.
◆ testCreatePositiveInteger()
ILIAS\Data\PositiveIntegerTest::testCreatePositiveInteger |
( |
| ) |
|
- Exceptions
-
ConstraintViolationException | |
Definition at line 20 of file PositiveIntegerTest.php.
22 $integer =
new PositiveInteger(6);
23 $this->assertSame(6, $integer->getValue());
◆ testMaximumIntegerIsAccepted()
ILIAS\Data\PositiveIntegerTest::testMaximumIntegerIsAccepted |
( |
| ) |
|
- Exceptions
-
ConstraintViolationException | |
Definition at line 41 of file PositiveIntegerTest.php.
43 $integer =
new PositiveInteger(PHP_INT_MAX);
44 $this->assertSame(PHP_INT_MAX, $integer->getValue());
◆ testNegativeIntegerThrowsException()
ILIAS\Data\PositiveIntegerTest::testNegativeIntegerThrowsException |
( |
| ) |
|
Definition at line 26 of file PositiveIntegerTest.php.
28 $this->expectNotToPerformAssertions();
31 $integer =
new PositiveInteger(-6);
32 }
catch (ConstraintViolationException $exception) {
The documentation for this class was generated from the following file: