Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Intl] use TestCase suffix for abstract tests in Tests directories #49419

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*
* @author Bernhard Schussek <[email protected]>
*/
abstract class AbstractCollatorTest extends TestCase
abstract class AbstractCollatorTestCase extends TestCase
{
/**
* @dataProvider asortProvider
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Intl/Tests/Collator/CollatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
/**
* @group legacy
*/
class CollatorTest extends AbstractCollatorTest
class CollatorTest extends AbstractCollatorTestCase
{
public function testConstructorWithUnsupportedLocale()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

namespace Symfony\Component\Intl\Tests\Collator\Verification;

use Symfony\Component\Intl\Tests\Collator\AbstractCollatorTest;
use Symfony\Component\Intl\Tests\Collator\AbstractCollatorTestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;

/**
* Verifies that {@link AbstractCollatorTest} matches the behavior of the
* Verifies that {@link AbstractCollatorTestCase} matches the behavior of the
* {@link \Collator} class in a specific version of ICU.
*
* @author Bernhard Schussek <[email protected]>
*/
class CollatorTest extends AbstractCollatorTest
class CollatorTest extends AbstractCollatorTestCase
{
protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @group legacy
*/
abstract class AbstractIntlDateFormatterTest extends TestCase
abstract class AbstractIntlDateFormatterTestCase extends TestCase
{
private $defaultLocale;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/**
* @group legacy
*/
class IntlDateFormatterTest extends AbstractIntlDateFormatterTest
class IntlDateFormatterTest extends AbstractIntlDateFormatterTestCase
{
public function testConstructor()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
namespace Symfony\Component\Intl\Tests\DateFormatter\Verification;

use Symfony\Component\Intl\DateFormatter\IntlDateFormatter;
use Symfony\Component\Intl\Tests\DateFormatter\AbstractIntlDateFormatterTest;
use Symfony\Component\Intl\Tests\DateFormatter\AbstractIntlDateFormatterTestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;

/**
* Verifies that {@link AbstractIntlDateFormatterTest} matches the behavior of
* Verifies that {@link AbstractIntlDateFormatterTestCase} matches the behavior of
* the {@link \IntlDateFormatter} class in a specific version of ICU.
*
* @author Bernhard Schussek <[email protected]>
*/
class IntlDateFormatterTest extends AbstractIntlDateFormatterTest
class IntlDateFormatterTest extends AbstractIntlDateFormatterTestCase
{
protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @group legacy
*/
abstract class AbstractIntlGlobalsTest extends TestCase
abstract class AbstractIntlGlobalsTestCase extends TestCase
{
public static function errorNameProvider()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
/**
* @group legacy
*/
class IntlGlobalsTest extends AbstractIntlGlobalsTest
class IntlGlobalsTest extends AbstractIntlGlobalsTestCase
{
protected function getIntlErrorName($errorCode)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@

namespace Symfony\Component\Intl\Tests\Globals\Verification;

use Symfony\Component\Intl\Tests\Globals\AbstractIntlGlobalsTest;
use Symfony\Component\Intl\Tests\Globals\AbstractIntlGlobalsTestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;

/**
* Verifies that {@link AbstractIntlGlobalsTest} matches the behavior of the
* Verifies that {@link AbstractIntlGlobalsTestCase} matches the behavior of the
* intl functions with a specific version of ICU.
*
* @author Bernhard Schussek <[email protected]>
*
* @group legacy
*/
class IntlGlobalsTest extends AbstractIntlGlobalsTest
class IntlGlobalsTest extends AbstractIntlGlobalsTestCase
{
protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*
* @author Bernhard Schussek <[email protected]>
*/
abstract class AbstractLocaleTest extends TestCase
abstract class AbstractLocaleTestCase extends TestCase
{
public function testSetDefault()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Symfony/Component/Intl/Tests/Locale/LocaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use Symfony\Component\Intl\Exception\MethodNotImplementedException;
use Symfony\Component\Intl\Locale\Locale;

class LocaleTest extends AbstractLocaleTest
class LocaleTest extends AbstractLocaleTestCase
{
public function testAcceptFromHttp()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,16 @@

namespace Symfony\Component\Intl\Tests\Locale\Verification;

use Symfony\Component\Intl\Tests\Locale\AbstractLocaleTest;
use Symfony\Component\Intl\Tests\Locale\AbstractLocaleTestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;

/**
* Verifies that {@link AbstractLocaleTest} matches the behavior of the
* Verifies that {@link AbstractLocaleTestCase} matches the behavior of the
* {@link Locale} class with a specific version of ICU.
*
* @author Bernhard Schussek <[email protected]>
*/
class LocaleTest extends AbstractLocaleTest
class LocaleTest extends AbstractLocaleTestCase
{
protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*
* @group legacy
*/
abstract class AbstractNumberFormatterTest extends TestCase
abstract class AbstractNumberFormatterTestCase extends TestCase
{
/**
* @dataProvider formatCurrencyWithDecimalStyleProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*
* @group legacy
*/
class NumberFormatterTest extends AbstractNumberFormatterTest
class NumberFormatterTest extends AbstractNumberFormatterTestCase
{
public function testConstructorWithUnsupportedLocale()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

namespace Symfony\Component\Intl\Tests\NumberFormatter\Verification;

use Symfony\Component\Intl\Tests\NumberFormatter\AbstractNumberFormatterTest;
use Symfony\Component\Intl\Tests\NumberFormatter\AbstractNumberFormatterTestCase;
use Symfony\Component\Intl\Util\IntlTestHelper;

/**
* Note that there are some values written like -2147483647 - 1. This is the lower 32bit int max and is a known
* behavior of PHP.
*/
class NumberFormatterTest extends AbstractNumberFormatterTest
class NumberFormatterTest extends AbstractNumberFormatterTestCase
{
protected function setUp(): void
{
Expand Down