19 declare(strict_types=1);
    42         return $this->getMockBuilder(ILegacy::class)
    43                     ->disableOriginalConstructor()
    44                     ->addMethods([
'exposeData'])
    51         return new class ($legacy_component, $this->any()) extends 
NullRenderer {
    53                 protected MockObject|
Legacy $legacy,
    54                 protected AnyInvokedCount $any
    60                 $legacy_clone = clone $this->legacy;
    61                 $legacy_clone->expects($this->any)
    62                              ->method(
'exposeData')
    63                              ->willReturn($copyright->exposed_data);
    64                 return [$legacy_clone];
    69                 return $copyright->exposed_data;
    77             public function buildIdentifierFromEntryID(
int $entry_id): 
string    79                 return 'identifier_' . $entry_id;
    92         return new class ($is_default, $is_outdated, 
$id, $title, $description, $cp_data) extends 
NullEntry {
    94                 protected bool $is_default,
    95                 protected bool $is_outdated,
    97                 protected string $title,
    98                 protected string $description,
    99                 protected string $cp_data
   103             public function id(): 
int   108             public function title(): 
string   113             public function description(): 
string   115                 return $this->description;
   118             public function isDefault(): 
bool   120                 return $this->is_default;
   123             public function isOutdated(): 
bool   125                 return $this->is_outdated;
   131                     public function __construct(
public string $exposed_data)
   154         $this->assertTrue($copyright->isDefault());
   172         $this->assertFalse($copyright->isDefault());
   190         $this->assertTrue($copyright->isOutdated());
   208         $this->assertFalse($copyright->isOutdated());
   226         $this->assertSame(
'identifier_35', $copyright->identifier());
   244         $this->assertSame(
'cp title', $copyright->title());
   262         $this->assertSame(
'cp description', $copyright->description());
   284         $this->assertSame(
'data of copyright', 
$components[0]->exposeData());
   302         $this->assertSame(
'data of copyright', $copyright->presentAsString());
 
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins