ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Tests\Refinery\Random\GroupTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Refinery\Random\GroupTest:
+ Collaboration diagram for ILIAS\Tests\Refinery\Random\GroupTest:

Public Member Functions

 testShuffle ()
 
 testDontShuffle ()
 

Protected Member Functions

 setUp ()
 

Private Attributes

RandomGroup $group
 

Detailed Description

Definition at line 29 of file GroupTest.php.

Member Function Documentation

◆ setUp()

ILIAS\Tests\Refinery\Random\GroupTest::setUp ( )
protected

Definition at line 33 of file GroupTest.php.

33 : void
34 {
35 $this->group = new RandomGroup();
36 }

◆ testDontShuffle()

ILIAS\Tests\Refinery\Random\GroupTest::testDontShuffle ( )

Definition at line 46 of file GroupTest.php.

46 : void
47 {
48 $instance = $this->group->dontShuffle();
49 $this->assertInstanceOf(IdentityTransformation::class, $instance);
50 }

◆ testShuffle()

ILIAS\Tests\Refinery\Random\GroupTest::testShuffle ( )

Definition at line 38 of file GroupTest.php.

38 : void
39 {
40 $mock = $this->getMockBuilder(Seed::class)->getMock();
41 $mock->expects(self::never())->method('seedRandomGenerator');
42 $instance = $this->group->shuffleArray($mock);
43 $this->assertInstanceOf(ShuffleTransformation::class, $instance);
44 }

Field Documentation

◆ $group

RandomGroup ILIAS\Tests\Refinery\Random\GroupTest::$group
private

Definition at line 31 of file GroupTest.php.


The documentation for this class was generated from the following file: