ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilQTIMatImageSecurityTest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  public function testConstruct(): void
26  {
27  $this->assertInstanceOf(
28  ilQtiMatImageSecurity::class,
30  $this->image(),
31  $this->createMock(\ILIAS\TestQuestionPool\Questions\Files\QuestionFiles::class)
32  )
33  );
34  }
35 
36  private function image(): ilQTIMatimage
37  {
38  $image = $this->getMockBuilder(ilQTIMatimage::class)->disableOriginalConstructor()->getMock();
39  $image->expects(self::exactly(2))->method('getRawContent')->willReturn('Ayayay');
40 
41  return $image;
42  }
43 }
Interface Observer Contains several chained tasks and infos about them.