19 declare(strict_types=1);
29 return new class () extends
Handler {
30 protected function getInstID():
string 41 $identifier =
$handler->buildIdentifierFromEntryID(32);
44 'il_copyright_entry__1234__32',
54 $handler->isIdentifierValid(
'il_copyright_entry__1234__32')
63 $handler->isIdentifierValid(
'invalid string')
72 $handler->isIdentifierValid(
'il_copyright_entry__999__32')
80 $entry_id =
$handler->parseEntryIDFromIdentifier(
'il_copyright_entry__1234__32');
82 $this->assertSame(32, $entry_id);
89 $entry_id =
$handler->parseEntryIDFromIdentifier(
'invalid string');
91 $this->assertSame(0, $entry_id);
98 $entry_id =
$handler->parseEntryIDFromIdentifier(
'il_copyright_entry__999__32');
100 $this->assertSame(0, $entry_id);