Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
[Ruwork][PHPCS] php_unit_internal_class=true.
Browse files Browse the repository at this point in the history
  • Loading branch information
vudaltsov committed Jul 13, 2018
1 parent dde428a commit 903578e
Show file tree
Hide file tree
Showing 34 changed files with 101 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ return PhpCsFixer\Config::create()
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_superfluous_phpdoc_tags' => true,
'no_unreachable_default_argument_value' => true,
'no_unset_on_property' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'ordered_class_elements' => true,
'ordered_imports' => true,
'php_unit_internal_class' => true,
'phpdoc_no_empty_return' => false,
'phpdoc_order' => true,
'phpdoc_types_order' => true,
Expand Down
3 changes: 3 additions & 0 deletions tests/BundleTest/AbstractBundleTestCaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* @internal
*/
class AbstractBundleTestCaseTest extends AbstractBundleTestCase
{
public function testExposeService(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Paginator/PaginatorBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use PHPUnit\Framework\TestCase;
use Ruwork\Paginator\Provider\ProviderInterface;

/**
* @internal
*/
class PaginatorBuilderTest extends TestCase
{
public function testNoProvider(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/Paginator/PaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use PHPUnit\Framework\TestCase;
use Ruwork\Paginator\Provider\ProviderInterface;

/**
* @internal
*/
class PaginatorTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/Paginator/Provider/IterableProviderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class IterableProviderTest extends TestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\KernelEvents;

/**
* @internal
*/
class PageOutOfRangeExceptionListenerTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/PaginatorBundle/RuworkPaginatorBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Symfony\Component\HttpKernel\Bundle\BundleInterface;
use Twig\Loader\FilesystemLoader;

/**
* @internal
*/
class RuworkPaginatorBundleTest extends AbstractBundleTestCase
{
public function testUnobtrusiveCompiler(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
use Symfony\Component\Form\Test\FormIntegrationTestCase;

/**
* @internal
*/
class DateTimeTypeDefaultDTIExtensionTest extends FormIntegrationTestCase
{
public function testInputOptionDefaultsToDTI()
Expand Down
3 changes: 3 additions & 0 deletions tests/Reform/Extension/DateTypeDefaultDTIExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Symfony\Component\Form\Extension\Core\Type\DateType;
use Symfony\Component\Form\Test\FormIntegrationTestCase;

/**
* @internal
*/
class DateTypeDefaultDTIExtensionTest extends FormIntegrationTestCase
{
public function testInputOptionDefaultsToDTI()
Expand Down
3 changes: 3 additions & 0 deletions tests/Reform/Extension/FormTypeNovalidateExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Symfony\Component\Form\Test\FormIntegrationTestCase;

/**
* @internal
*/
class FormTypeNovalidateExtensionTest extends FormIntegrationTestCase
{
public function testNovalidateAddedToRootForm()
Expand Down
3 changes: 3 additions & 0 deletions tests/Reform/Extension/TimeTypeDefaultDTIExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Symfony\Component\Form\Extension\Core\Type\TimeType;
use Symfony\Component\Form\Test\FormIntegrationTestCase;

/**
* @internal
*/
class TimeTypeDefaultDTIExtensionTest extends FormIntegrationTestCase
{
public function testInputOptionDefaultsToDTI()
Expand Down
3 changes: 3 additions & 0 deletions tests/ReformBundle/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\Extension\Core\Type\TimeType;

/**
* @internal
*/
class RuworkReformExtensionTest extends AbstractExtensionTestCase
{
public function testDefault()
Expand Down
3 changes: 3 additions & 0 deletions tests/ReformBundle/RuworkReformBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use PHPUnit\Framework\TestCase;
use Ruwork\ReformBundle\DependencyInjection\RuworkReformExtension;

/**
* @internal
*/
class RuworkReformBundleTest extends TestCase
{
public function testExtensionClass()
Expand Down
3 changes: 3 additions & 0 deletions tests/RouteOptionalPrefix/LoaderDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;

/**
* @internal
*/
class LoaderDecoratorTest extends TestCase
{
public function testSupports()
Expand Down
3 changes: 3 additions & 0 deletions tests/RouteOptionalPrefix/RouterDecoratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
use Symfony\Component\Routing\Router;
use Symfony\Component\Routing\RouterInterface;

/**
* @internal
*/
class RouterDecoratorTest extends TestCase
{
public function testSetContext(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\Request;

/**
* @internal
*/
class RemoveTrailingSlashControllerTest extends TestCase
{
public function testInvoke()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Config\Definition\ConfigurationInterface;

/**
* @internal
*/
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;

/**
* @internal
*/
class RedirectFactoryTest extends TestCase
{
public function testCreateDefault()
Expand Down
3 changes: 3 additions & 0 deletions tests/RoutingToolsBundle/RuworkRoutingToolsBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
use Symfony\Component\Routing\Loader\PhpFileLoader;
use Symfony\Component\Routing\Router;

/**
* @internal
*/
class RuworkRoutingToolsBundleTest extends AbstractBundleTestCase
{
public function testUnobtrusiveCompilerPasses(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/RoutingToolsBundle/Twig/BridgeRoutingExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use Symfony\Component\Routing\RouteCollection;
use Symfony\Component\Routing\Router;

/**
* @internal
*/
class BridgeRoutingExtensionTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/RoutingToolsBundle/Twig/RoutingHelpersExtensionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\RequestStack;

/**
* @internal
*/
class RoutingHelpersExtensionTest extends TestCase
{
public function testWithEmptyRequest(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/RunetIdBundle/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;
Expand Down
3 changes: 3 additions & 0 deletions tests/RunetIdBundle/Helper/EventDatesExtractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use RunetId\Client\Result\Event\InfoResult;
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;

/**
* @internal
*/
class EventDatesExtractorTest extends TestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/RunetIdBundle/RunetIdBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
use Ruwork\RunetIdBundle\HWIOAuth\ResourceOwner;
use Symfony\Component\HttpKernel\Bundle\BundleInterface;

/**
* @internal
*/
class RunetIdBundleTest extends AbstractBundleTestCase
{
public function testServices(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/RunetIdBundle/Validator/UniqueEmailValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
use Webthink\Container\SimpleContainer;

/**
* @internal
*/
class UniqueEmailValidatorTest extends ConstraintValidatorTestCase
{
/**
Expand Down
3 changes: 3 additions & 0 deletions tests/RuworkBundle/RuworkBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use PHPUnit\Framework\TestCase;
use Ruwork\RuworkBundle\DependencyInjection\RuworkExtension;

/**
* @internal
*/
class RuworkBundleTest extends TestCase
{
public function testExtensionClass()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Ruwork\TemplateI18nBundle\Resolver\LocalizedTemplateResolverInterface;
use Symfony\Component\DependencyInjection\Reference;

/**
* @internal
*/
class RuworkTemplateI18nExtensionTest extends AbstractExtensionTestCase
{
public function testDefault(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;
use Symfony\Component\HttpKernel\KernelEvents;

/**
* @internal
*/
class TemplateAnnotationListenerTest extends TestCase
{
public function testEventPriorityHigher(): void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class NamingStrategyTest extends TestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
use Twig\Environment;
use Twig\Template;

/**
* @internal
*/
class LocalizedTemplateResolverTest extends TestCase
{
public function testResolve(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/TemplateI18nBundle/RuworkReformBundleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use PHPUnit\Framework\TestCase;
use Ruwork\TemplateI18nBundle\DependencyInjection\RuworkTemplateI18nExtension;

/**
* @internal
*/
class RuworkReformBundleTest extends TestCase
{
public function testExtensionClass(): void
Expand Down
3 changes: 3 additions & 0 deletions tests/UploadBundle/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
use Matthias\SymfonyConfigTest\PhpUnit\ConfigurationTestCaseTrait;
use PHPUnit\Framework\TestCase;

/**
* @internal
*/
class ConfigurationTest extends TestCase
{
use ConfigurationTestCaseTrait;
Expand Down

0 comments on commit 903578e

Please sign in to comment.