Definition at line 34 of file GroupTest.php.
◆ setUp()
ILIAS\Tests\Refinery\Integer\GroupTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 38 of file GroupTest.php.
40 $dataFactory =
new Factory();
41 $language = $this->getMockBuilder(Language::class)
42 ->disableOriginalConstructor()
44 $in = $this->getMockBuilder(InGroup::class)
45 ->disableOriginalConstructor()
48 $this->group =
new IntegerGroup($dataFactory, $language, $in);
◆ testGreaterThanInstance()
ILIAS\Tests\Refinery\Integer\GroupTest::testGreaterThanInstance |
( |
| ) |
|
Definition at line 51 of file GroupTest.php.
53 $instance = $this->group->isGreaterThan(42);
54 $this->assertInstanceOf(GreaterThan::class, $instance);
◆ testGreaterThanOrEqualInstance()
ILIAS\Tests\Refinery\Integer\GroupTest::testGreaterThanOrEqualInstance |
( |
| ) |
|
Definition at line 62 of file GroupTest.php.
64 $instance = $this->group->isGreaterThanOrEqual(42);
65 $this->assertInstanceOf(GreaterThanOrEqual::class, $instance);
◆ testIsBetween()
ILIAS\Tests\Refinery\Integer\GroupTest::testIsBetween |
( |
| ) |
|
Definition at line 74 of file GroupTest.php.
76 $dataFactory = $this->getMockBuilder(Factory::class)->disableOriginalConstructor()->getMock();
77 $language = $this->getMockBuilder(Language::class)->disableOriginalConstructor()->getMock();
78 $in = $this->getMockBuilder(InGroup::class)->disableOriginalConstructor()->getMock();
79 $series = $this->getMockBuilder(Constraint::class)->getMock();
81 $in->expects(self::once())->method(
'series')->willReturnCallback(
function (array $array) use ($series) {
82 $this->assertSame(2, count($array));
83 $this->assertInstanceOf(GreaterThanOrEqual::class, $array[0]);
84 $this->assertInstanceOf(LessThanOrEqual::class, $array[1]);
89 $group =
new IntegerGroup($dataFactory, $language, $in);
90 $this->assertSame($series,
$group->isBetween(4, 8));
◆ testLessThanOrEqualInstance()
ILIAS\Tests\Refinery\Integer\GroupTest::testLessThanOrEqualInstance |
( |
| ) |
|
Definition at line 68 of file GroupTest.php.
70 $instance = $this->group->isLessThanOrEqual(42);
71 $this->assertInstanceOf(LessThanOrEqual::class, $instance);
◆ testLowerThanInstance()
ILIAS\Tests\Refinery\Integer\GroupTest::testLowerThanInstance |
( |
| ) |
|
Definition at line 56 of file GroupTest.php.
58 $instance = $this->group->isLessThan(42);
59 $this->assertInstanceOf(LessThan::class, $instance);
◆ $group
IntegerGroup ILIAS\Tests\Refinery\Integer\GroupTest::$group |
|
private |
The documentation for this class was generated from the following file: