ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
BasicGroupTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\Tests\Refinery\In
;
22
23
use
ILIAS\Refinery\In\Parallel
;
24
use
ILIAS\Refinery\In\Series
;
25
use
ILIAS\Refinery\In\Group
as InGroup;
26
use
ILIAS\Refinery\To\Transformation\IntegerTransformation
;
27
use
ILIAS\Refinery\To\Transformation\StringTransformation
;
28
use
PHPUnit\Framework\TestCase
;
29
30
class
BasicGroupTest
extends
TestCase
31
{
32
private
InGroup
$group
;
33
34
protected
function
setUp
(): void
35
{
36
$this->group =
new
InGroup();
37
}
38
39
public
function
testParallelInstanceCreated
(): void
40
{
41
$transformation = $this->group->parallel([
new
StringTransformation
(),
new
IntegerTransformation
()]);
42
$this->assertInstanceOf(Parallel::class, $transformation);
43
}
44
45
public
function
testSeriesInstanceCreated
(): void
46
{
47
$transformation = $this->group->series([
new
StringTransformation
(),
new
IntegerTransformation
()]);
48
$this->assertInstanceOf(Series::class, $transformation);
49
}
50
}
ILIAS\Tests\Refinery\In\BasicGroupTest\setUp
setUp()
Definition:
BasicGroupTest.php:34
IntegerTransformation
ILIAS\Refinery\In\Group
Definition:
Group.php:25
ILIAS\Tests\Refinery\In\BasicGroupTest
Definition:
BasicGroupTest.php:30
ILIAS\Tests\Refinery\In\BasicGroupTest\$group
InGroup $group
Definition:
BasicGroupTest.php:32
ILIAS\Refinery\To\Transformation\IntegerTransformation
Definition:
IntegerTransformation.php:29
ILIAS\Tests\Refinery\In
Definition:
BasicGroupTest.php:21
ILIAS\Refinery\To\Transformation\StringTransformation
Definition:
StringTransformation.php:29
ILIAS\Tests\Refinery\In\BasicGroupTest\testParallelInstanceCreated
testParallelInstanceCreated()
Definition:
BasicGroupTest.php:39
ILIAS\Tests\Refinery\In\BasicGroupTest\testSeriesInstanceCreated
testSeriesInstanceCreated()
Definition:
BasicGroupTest.php:45
Series
StringTransformation
Parallel
TestCase
components
ILIAS
Refinery
tests
In
BasicGroupTest.php
Generated on Mon Sep 1 2025 23:03:42 for ILIAS by
1.8.13 (using
Doxyfile
)