Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@..
Decoded Output download
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Notifier\Bridge\Infobip\Tests;
use Symfony\Component\Notifier\Bridge\Infobip\InfobipTransportFactory;
use Symfony\Component\Notifier\Test\TransportFactoryTestCase;
final class InfobipTransportFactoryTest extends TransportFactoryTestCase
{
public function createFactory(): InfobipTransportFactory
{
return new InfobipTransportFactory();
}
public static function createProvider(): iterable
{
yield [
'infobip://host.test?from=0611223344',
'infobip://[email protected]?from=0611223344',
];
}
public static function supportsProvider(): iterable
{
yield [true, 'infobip://authtoken@default?from=0611223344'];
yield [false, 'somethingElse://authtoken@default?from=0611223344'];
}
public static function missingRequiredOptionProvider(): iterable
{
yield 'missing option: from' => ['infobip://authtoken@default'];
}
public static function unsupportedSchemeProvider(): iterable
{
yield ['somethingElse://authtoken@default?from=FROM'];
yield ['somethingElse://authtoken@default']; // missing "from" option
}
}
?>
Did this file decode correctly?
Original Code
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Notifier\Bridge\Infobip\Tests;
use Symfony\Component\Notifier\Bridge\Infobip\InfobipTransportFactory;
use Symfony\Component\Notifier\Test\TransportFactoryTestCase;
final class InfobipTransportFactoryTest extends TransportFactoryTestCase
{
public function createFactory(): InfobipTransportFactory
{
return new InfobipTransportFactory();
}
public static function createProvider(): iterable
{
yield [
'infobip://host.test?from=0611223344',
'infobip://[email protected]?from=0611223344',
];
}
public static function supportsProvider(): iterable
{
yield [true, 'infobip://authtoken@default?from=0611223344'];
yield [false, 'somethingElse://authtoken@default?from=0611223344'];
}
public static function missingRequiredOptionProvider(): iterable
{
yield 'missing option: from' => ['infobip://authtoken@default'];
}
public static function unsupportedSchemeProvider(): iterable
{
yield ['somethingElse://authtoken@default?from=FROM'];
yield ['somethingElse://authtoken@default']; // missing "from" option
}
}
Function Calls
None |
Stats
MD5 | 789b59ed637b701e00d99a9c139b0a34 |
Eval Count | 0 |
Decode Time | 110 ms |