Definition at line 18 of file PositiveIntegerTest.php.
◆ testCreatePositiveInteger()
ILIAS\Data\PositiveIntegerTest::testCreatePositiveInteger |
( |
| ) |
|
- Exceptions
-
ConstraintViolationException | |
Definition at line 23 of file PositiveIntegerTest.php.
25 $integer =
new PositiveInteger(6);
26 $this->assertSame(6, $integer->getValue());
◆ testMaximumIntegerIsAccepted()
ILIAS\Data\PositiveIntegerTest::testMaximumIntegerIsAccepted |
( |
| ) |
|
- Exceptions
-
ConstraintViolationException | |
Definition at line 44 of file PositiveIntegerTest.php.
46 $integer =
new PositiveInteger(PHP_INT_MAX);
47 $this->assertSame(PHP_INT_MAX, $integer->getValue());
◆ testNegativeIntegerThrowsException()
ILIAS\Data\PositiveIntegerTest::testNegativeIntegerThrowsException |
( |
| ) |
|
Definition at line 29 of file PositiveIntegerTest.php.
31 $this->expectNotToPerformAssertions();
34 $integer =
new PositiveInteger(-6);
35 }
catch (ConstraintViolationException $exception) {
The documentation for this class was generated from the following file: