Skip to content

Commit 1e7d5ca

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: fix test Restore Relay 8.5 test account for PHP_ZTS being a boolean value on PHP 8.4+ [Intl] Update data to ICU 78.1 [Notifier][Smsbox] Add tests for `Mode` enum [DependencyInjection] Remove unused variable [Console] Fix exception message when abbreviation matches multiple hidden commands [FrameworkBundle] Fix TypeError when traversing scalar values in debug:config [DependencyInjection] Fix loop corruption in CheckTypeDeclarationsPass [Security] Fix UserBadge validation bypass via identifier normalizer [DependencyInjection] Fix invalid PHP syntax for nullable TypedReference in PhpDumper Fix typo in comment [Translation][Routing] Fix typos [Config] Fix nullable EnumNode with BackedEnum [String] Fix normalization in trimPrefix/trimSuffix
2 parents bb68af7 + 0a9f19e commit 1e7d5ca

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

Tests/Enum/ModeTest.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\Notifier\Bridge\Smsbox\Tests\Enum;
13+
14+
use PHPUnit\Framework\Attributes\DataProvider;
15+
use PHPUnit\Framework\TestCase;
16+
use Symfony\Component\Notifier\Bridge\Smsbox\Enum\Mode;
17+
18+
class ModeTest extends TestCase
19+
{
20+
#[DataProvider('provideModeValues')]
21+
public function testModeValues(Mode $mode, string $value)
22+
{
23+
self::assertSame($value, $mode->value);
24+
}
25+
26+
/**
27+
* @return iterable<array{Mode, string}>
28+
*/
29+
public static function provideModeValues(): iterable
30+
{
31+
yield [Mode::Standard, 'Standard'];
32+
yield [Mode::Expert, 'Expert'];
33+
yield [Mode::Response, 'Reponse']; // not a typo, see https://en.smsbox.net/docs/doc-API-SMSBOX-1.1-EN.pdf
34+
}
35+
}

0 commit comments

Comments
 (0)