l10n = $this->createMock(IL10N::class); $this->l10n->method('t') ->willReturnCallback(function ($text, $parameters = []) { return vsprintf($text, $parameters); }); } public function testGetIdentifier() { $this->assertSame($this->bundleIdentifier, $this->bundle->getIdentifier()); } public function testGetName() { $this->assertSame($this->bundleName, $this->bundle->getName()); } public function testGetAppIdentifiers() { $this->assertSame($this->bundleAppIds, $this->bundle->getAppIdentifiers()); } }