ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
BasicGroupTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
25use ILIAS\Refinery\In\Group as InGroup;
28use PHPUnit\Framework\TestCase;
29
30class 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}