ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
BasicGroupTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9
16
17require_once('./libs/composer/vendor/autoload.php');
18
20{
24 private $group;
25
26 public function setUp() : void
27 {
28 $this->group = new Group();
29 }
30
32 {
33 $transformation = $this->group->parallel(array(new StringTransformation(), new IntegerTransformation()));
34 $this->assertInstanceOf(Parallel::class, $transformation);
35 }
36
37 public function testSeriesInstanceCreated()
38 {
39 $transformation = $this->group->series(array(new StringTransformation(), new IntegerTransformation()));
40 $this->assertInstanceOf(Series::class, $transformation);
41 }
42}
An exception for terminatinating execution or to throw for unit testing.