19 declare(strict_types=1);
37 protected function setUp(): void
41 $this->dic = is_object($DIC) ? clone
$DIC :
$DIC;
47 $this->getMockBuilder(ilGlobalTemplateInterface::class)->getMock()
67 $this->ilChatroomUserMock = $this->getMockBuilder(ilChatroomUser::class)->disableOriginalConstructor()->onlyMethods(
68 [
'getUserId',
'getUsername']
79 $db = $this->getMockBuilder(ilDBInterface::class)->getMock();
80 $db->method(
'quote')->willReturnCallback(
static function ($arg):
string {
81 return "'" . $arg .
"'";
95 $DIC[$name] =
static function (
Container $c) use ($name) {
Customizing of pimple-DIC for ILIAS.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
createIlChatroomUserMock()
Class ilChatroomAbstractTest.
setGlobalVariable(string $name, $value)