19 declare(strict_types=1);
    31 require_once __DIR__ . 
'/../../ContainerMock.php';
    39         $this->assertInstanceOf(Bundle::class, 
new Bundle([]));
    44         $a = $this->mock(ilFormPropertyGUI::class);
    45         $b = $this->mock(ilFormPropertyGUI::class);
    46         $c = $this->mock(ilFormPropertyGUI::class);
    49             $this->mockTree(SelfRegistration::class, [
'legacyInputGUIs' => [
$a]]),
    50             $this->mockTree(SelfRegistration::class, [
'legacyInputGUIs' => [
$b, 
$c]])
    52         $this->assertSame([
$a, 
$b, 
$c], $bundle->legacyInputGUIs());
    57         $form = $this->mock(ilPropertyFormGUI::class);
    60             $this->mockMethod(SelfRegistration::class, 
'saveLegacyForm', [$form], 
true),
    61             $this->mockMethod(SelfRegistration::class, 
'saveLegacyForm', [$form], 
true)
    63         $this->assertTrue($bundle->saveLegacyForm($form));
    69         $user = $this->mock(ilObjUser::class);
    70         $self_registration = $this->mock(SelfRegistration::class);
    71         $self_registration->expects(self::exactly(2))->method(
'userCreation')->with($user);
    78         $bundle->userCreation($user);
 
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples