Definition at line 31 of file PositiveIntegerTest.php.
◆ testCreatePositiveInteger()
ILIAS\Data\PositiveIntegerTest::testCreatePositiveInteger |
( |
| ) |
|
- Exceptions
-
ConstraintViolationException | |
Definition at line 36 of file PositiveIntegerTest.php.
38 $integer =
new PositiveInteger(6);
39 $this->assertSame(6, $integer->getValue());
◆ testMaximumIntegerIsAccepted()
ILIAS\Data\PositiveIntegerTest::testMaximumIntegerIsAccepted |
( |
| ) |
|
- Exceptions
-
ConstraintViolationException | |
Definition at line 57 of file PositiveIntegerTest.php.
59 $integer =
new PositiveInteger(PHP_INT_MAX);
60 $this->assertSame(PHP_INT_MAX, $integer->getValue());
◆ testNegativeIntegerThrowsException()
ILIAS\Data\PositiveIntegerTest::testNegativeIntegerThrowsException |
( |
| ) |
|
Definition at line 42 of file PositiveIntegerTest.php.
44 $this->expectNotToPerformAssertions();
47 $integer =
new PositiveInteger(-6);
48 }
catch (ConstraintViolationException $exception) {
The documentation for this class was generated from the following file: