Skip to content
Permalink
Browse files

drop @var annotation in tests, thanks to phpstorm.meta

  • Loading branch information...
TomasVotruba committed Jan 18, 2019
1 parent e293e74 commit d53003ebc41dddcb228e517c98d59de70ebc17a0
Showing with 1 addition and 49 deletions.
  1. +0 −1 packages/BetterPhpDocParser/tests/PhpDocInfo/PhpDocInfoTest.php
  2. +0 −1 ...asyCodingStandard/packages/FixerRunner/tests/DependencyInjection/FixerServiceRegistrationTest.php
  3. +0 −2 packages/EasyCodingStandard/packages/SniffRunner/tests/Application/FileProcessorTest.php
  4. +0 −1 packages/EasyCodingStandard/packages/SniffRunner/tests/Application/FixerTest.php
  5. +0 −1 packages/EasyCodingStandard/packages/SniffRunner/tests/DI/SniffServiceRegistrationTest.php
  6. +0 −1 packages/EasyCodingStandard/packages/SniffRunner/tests/File/FileTest.php
  7. +0 −4 packages/EasyCodingStandard/tests/DependencyInjection/ConfigurationFileTest.php
  8. +0 −1 packages/EasyCodingStandard/tests/DependencyInjection/ContainerFactoryTest.php
  9. +0 −1 packages/EasyCodingStandard/tests/DependencyInjection/ExcludedCheckersTest.php
  10. +0 −2 packages/EasyCodingStandard/tests/DependencyInjection/MutualExcludedCheckersTest.php
  11. +0 −1 packages/EasyCodingStandard/tests/Error/ErrorCollector/SniffFileProcessorTest.php
  12. +0 −2 packages/EasyCodingStandard/tests/Finder/SourceFinderTest.php
  13. +0 −1 packages/EasyCodingStandard/tests/Indentation/IndentationTest.php
  14. +0 −1 packages/MonorepoBuilder/tests/ComposerJsonDecorator/SortComposerJsonDecoratorTest.php
  15. +0 −1 ...dencyInjection/CompilerPass/AutoBindParametersCompilerPass/AutoBindParametersCompilerPassTest.php
  16. +0 −2 packages/PackageBuilder/tests/Parameter/ParameterProviderTest.php
  17. +0 −1 packages/PackageBuilder/tests/Parameter/ParameterTypoProofreader/ParameterTypoProofreaderTest.php
  18. +0 −1 packages/Statie/packages/Generator/tests/AbstractGeneratorTest.php
  19. +1 −1 packages/Statie/packages/Generator/tests/GeneratorTest.php
  20. +0 −1 packages/Statie/packages/Latte/tests/LatteFactoryTest.php
  21. +0 −1 packages/Statie/packages/Latte/tests/LatteRendererTest.php
  22. +0 −2 packages/Statie/packages/Latte/tests/Renderable/LatteFileDecoratorTest.php
  23. +0 −2 packages/Statie/packages/Tweeter/tests/TweetProvider/UnpublishedTweetsResolverTest.php
  24. +0 −2 packages/Statie/packages/Twig/tests/Renderable/TwigFileDecoratorTest.php
  25. +0 −1 packages/Statie/packages/Twig/tests/TwigFactory/TwigFactoryTest.php
  26. +0 −1 packages/Statie/packages/Twig/tests/TwigRendererTest.php
  27. +0 −1 packages/Statie/tests/Configuration/ConfigurationTest.php
  28. +0 −1 packages/Statie/tests/Console/Command/GenerateCommandTest.php
  29. +0 −1 packages/Statie/tests/FileSystem/FileSystemWriterTest.php
  30. +0 −1 packages/Statie/tests/Renderable/Configuration/ConfigurationFileDecoratorTest.php
  31. +0 −1 packages/Statie/tests/Renderable/File/FileFactoryTest.php
  32. +0 −1 packages/Statie/tests/Renderable/File/FileTest.php
  33. +0 −1 packages/Statie/tests/Renderable/Markdown/MarkdownFileDecoratorTest.php
  34. +0 −1 packages/Statie/tests/Renderable/RenderableFilesProcessorTest.php
  35. +0 −2 packages/Statie/tests/Renderable/Routing/RouteFileDecoratorTest.php
  36. +0 −2 packages/Statie/tests/Templating/FilterProvider/GithubFilterProvider/GithubFilterProviderTest.php
  37. +0 −1 packages/Statie/tests/Templating/FilterProvider/TimeFilterProviderTest.php
@@ -29,7 +29,6 @@ final class PhpDocInfoTest extends AbstractContainerAwareTestCase
protected function setUp(): void
{
/** @var PhpDocInfoFactory $phpDocInfoFactory */
$phpDocInfoFactory = $this->container->get(PhpDocInfoFactory::class);
$this->phpDocInfo = $phpDocInfoFactory->createFrom(FileSystem::read(__DIR__ . '/PhpDocInfoSource/doc.txt'));
@@ -20,7 +20,6 @@ public function test(): void
[__DIR__ . '/FixerServiceRegistrationSource/easy-coding-standard.yml']
);
/** @var FixerFileProcessor $fixerFileProcessor */
$fixerFileProcessor = $container->get(FixerFileProcessor::class);
$checkers = $fixerFileProcessor->getCheckers();
@@ -60,11 +60,9 @@ public function testFileProvingNeedOfProperSupportOfChangesets(): void
__DIR__ . '/FileProcessorSource/ReferenceUsedNamesOnlySniff/FileProvingNeedOfProperSupportOfChangesets.php.inc'
);
/** @var CurrentFileProvider $currentFileProvider */
$currentFileProvider = $container->get(CurrentFileProvider::class);
$currentFileProvider->setFileInfo($smartFileInfo);
/** @var SniffFileProcessor $sniffFileProcessor */
$sniffFileProcessor = $container->get(SniffFileProcessor::class);
$this->assertStringEqualsFile(
__DIR__ . '/FileProcessorSource/ReferenceUsedNamesOnlySniff/FileProvingNeedOfProperSupportOfChangesets-fixed.php.inc',
@@ -22,7 +22,6 @@ final class FixerTest extends AbstractContainerAwareTestCase
protected function setUp(): void
{
/** @var FileFactory $fileFactory */
$fileFactory = $this->container->get(FileFactory::class);
$this->file = $fileFactory->createFromFileInfo(new SmartFileInfo(__DIR__ . '/FixerSource/SomeFile.php'));
@@ -15,7 +15,6 @@ public function test(): void
[__DIR__ . '/SniffServiceRegistrationSource/easy-coding-standard.yml']
);
/** @var SniffFileProcessor $sniffFileProcessor */
$sniffFileProcessor = $container->get(SniffFileProcessor::class);
/** @var LineLengthSniff $lineLengthSniff */
@@ -32,7 +32,6 @@ protected function setUp(): void
$this->errorAndDiffCollector = $this->container->get(ErrorAndDiffCollector::class);
$this->currentFileProvider = $this->container->get(CurrentFileProvider::class);
/** @var FileFactory $fileFactory */
$fileFactory = $this->container->get(FileFactory::class);
$fileInfo = new SmartFileInfo(__DIR__ . '/FileFactorySource/SomeFile.php');
$this->file = $fileFactory->createFromFileInfo($fileInfo);
@@ -15,11 +15,9 @@ public function testEmptyConfig(): void
[__DIR__ . '/ConfigurationFileSource/empty-config.yml']
);
/** @var FixerFileProcessor $fixerFileProcessor */
$fixerFileProcessor = $container->get(FixerFileProcessor::class);
$this->assertCount(0, $fixerFileProcessor->getCheckers());
/** @var SniffFileProcessor $sniffFileProcessor */
$sniffFileProcessor = $container->get(SniffFileProcessor::class);
$this->assertCount(0, $sniffFileProcessor->getCheckers());
}
@@ -30,11 +28,9 @@ public function testIncludeConfig(): void
[__DIR__ . '/ConfigurationFileSource/include-another-config.yml']
);
/** @var FixerFileProcessor $fixerFileProcessor */
$fixerFileProcessor = $container->get(FixerFileProcessor::class);
$this->assertCount(1, $fixerFileProcessor->getCheckers());
/** @var SniffFileProcessor $sniffFileProcessor */
$sniffFileProcessor = $container->get(SniffFileProcessor::class);
$this->assertCount(1, $sniffFileProcessor->getCheckers());
}
@@ -35,7 +35,6 @@ public function testCreateFromConfig(): void
);
$this->assertInstanceOf(ContainerInterface::class, $container);
/** @var SniffFileProcessor $sniffFileProcessor */
$sniffFileProcessor = $container->get(SniffFileProcessor::class);
$this->assertCount(1, $sniffFileProcessor->getCheckers());
}
@@ -12,7 +12,6 @@ public function test(): void
{
$container = (new ContainerFactory())->createWithConfigs([__DIR__ . '/ExcludedCheckersSource/config.yml']);
/** @var FixerFileProcessor $fixerFileProcessor */
$fixerFileProcessor = $container->get(FixerFileProcessor::class);
$this->assertCount(0, $fixerFileProcessor->getCheckers());
}
@@ -15,11 +15,9 @@ public function test(): void
[__DIR__ . '/MutualExcludedCheckersSource/config.yml']
);
/** @var FixerFileProcessor $fixerFileProcessor */
$fixerFileProcessor = $container->get(FixerFileProcessor::class);
$this->assertCount(1, $fixerFileProcessor->getCheckers());
/** @var SniffFileProcessor $sniffFileProcessor */
$sniffFileProcessor = $container->get(SniffFileProcessor::class);
$this->assertCount(0, $sniffFileProcessor->getCheckers());
}
@@ -37,7 +37,6 @@ protected function setUp(): void
$this->sniffFileProcessor = $container->get(SniffFileProcessor::class);
$this->currentFileProvider = $container->get(CurrentFileProvider::class);
/** @var ChangedFilesDetector $changedFilesDetector */
$changedFilesDetector = $container->get(ChangedFilesDetector::class);
$changedFilesDetector->clearCache();
}
@@ -10,7 +10,6 @@ final class SourceFinderTest extends AbstractContainerAwareTestCase
{
public function test(): void
{
/** @var SourceFinder $sourceFinder */
$sourceFinder = $this->container->get(SourceFinder::class);
$foundFiles = $sourceFinder->find([__DIR__ . '/SourceFinderSource/Source']);
$this->assertCount(1, $foundFiles);
@@ -37,7 +36,6 @@ public function testAppendFileAndSanitize(): void
[__DIR__ . '/SourceFinderSource/config-with-append-file-provider.yml']
);
/** @var SourceFinder $sourceFinder */
$sourceFinder = $container->get(SourceFinder::class);
$foundFiles = $sourceFinder->find([__DIR__ . '/SourceFinderSource/Source/tests']);
@@ -39,7 +39,6 @@ public function testTabs(): void
private function getIndentationTypeFixerFromContainer(ContainerInterface $container): IndentationTypeFixer
{
/** @var FixerFileProcessor $fixerFileProcessor */
$fixerFileProcessor = $container->get(FixerFileProcessor::class);
$checkers = $fixerFileProcessor->getCheckers();
$this->assertCount(1, $checkers);
@@ -21,7 +21,6 @@ final class SortComposerJsonDecoratorTest extends AbstractContainerAwareTestCase
public function test(): void
{
/** @var SortComposerJsonDecorator $sortComposerJsonDecorator */
$sortComposerJsonDecorator = $this->container->get(SortComposerJsonDecorator::class);
$sortedComposerJson = $sortComposerJsonDecorator->decorate($this->composerJson);
@@ -15,7 +15,6 @@ public function test(): void
$autoBindParametersKernel = new AutoBindParametersKernel();
$autoBindParametersKernel->boot();
/** @var ContainerInterface $container */
$container = $autoBindParametersKernel->getContainer();
$serviceWithAutowiredParameter = $container->get(ServiceWithAutowiredParameter::class);
@@ -12,7 +12,6 @@ public function test(): void
{
$container = (new ContainerFactory())->createWithConfig(__DIR__ . '/ParameterProviderSource/config.yml');
/** @var ParameterProvider $parameterProvider */
$parameterProvider = $container->get(ParameterProvider::class);
$this->assertContains([
'key' => 'value',
@@ -32,7 +31,6 @@ public function testIncludingYaml(): void
__DIR__ . '/ParameterProviderSource/Yaml/including-config.yml'
);
/** @var ParameterProvider $parameterProvider */
$parameterProvider = $container->get(ParameterProvider::class);
$this->assertContains([
@@ -23,7 +23,6 @@ protected function setUp(): void
public function testConsole(): void
{
/** @var Application $application */
$application = $this->container->get(Application::class);
$application->setCatchExceptions(false);
@@ -62,7 +62,6 @@ private function prepareConfiguration(): void
*/
private function prepareLayouts(): void
{
/** @var ArrayLoader $arrayLoader */
$arrayLoader = $this->container->get(ArrayLoader::class);
$arrayLoader->changeContent(
'_layouts/post.latte',
@@ -16,7 +16,7 @@ public function testIdsAreKeys(): void
foreach ($generatorFilesByType as $generatorFiles) {
foreach ($generatorFiles as $key => $generatorFile) {
/** @var AbstractGeneratorFile */
/** @var AbstractGeneratorFile $generatorFile */
$this->assertSame($key, $generatorFile->getId());
}
}
@@ -11,7 +11,6 @@ final class LatteFactoryTest extends AbstractContainerAwareTestCase
{
public function test(): void
{
/** @var LatteFactory $latteFactory */
$latteFactory = $this->container->get(LatteFactory::class);
$latte = $latteFactory->create();
@@ -25,7 +25,6 @@ protected function setUp(): void
$this->latteRenderer = $this->container->get(LatteRenderer::class);
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/LatteRendererSource');
}
@@ -30,11 +30,9 @@ protected function setUp(): void
$this->latteFileDecorator = $this->container->get(LatteFileDecorator::class);
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/LatteFileDecoratorSource');
/** @var ArrayLoader $arrayLoader */
$arrayLoader = $this->container->get(ArrayLoader::class);
$arrayLoader->changeContent('default', FileSystem::read(__DIR__ . '/LatteFileDecoratorSource/default.latte'));
}
@@ -32,7 +32,6 @@ protected function setUp(): void
{
parent::setUp();
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/Source');
@@ -41,7 +40,6 @@ protected function setUp(): void
$this->unpublishedTweetsResolver = $this->container->get(UnpublishedTweetsResolver::class);
// set twig templates
/** @var ArrayLoader $arrayLoader */
$arrayLoader = $this->container->get(ArrayLoader::class);
$arrayLoader->setTemplate('_layouts/post.twig', FileSystem::read(__DIR__ . '/Source/_layouts/post.twig'));
}
@@ -29,11 +29,9 @@ protected function setUp(): void
$this->twigFileDecorator = $this->container->get(TwigFileDecorator::class);
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/TwigFileDecoratorSource');
/** @var ArrayLoader $arrayLoader */
$arrayLoader = $this->container->get(ArrayLoader::class);
$arrayLoader->setTemplate('default', FileSystem::read(__DIR__ . '/TwigFileDecoratorSource/default.twig'));
}
@@ -10,7 +10,6 @@ final class TwigFactoryTest extends AbstractConfigAwareContainerTestCase
{
public function test(): void
{
/** @var TwigFactory $twigFactory */
$twigFactory = $this->container->get(TwigFactory::class);
$twig = $twigFactory->create();
@@ -25,7 +25,6 @@ protected function setUp(): void
$this->twigRenderer = $this->container->get(TwigRenderer::class);
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/TwigRendererSource');
}
@@ -13,7 +13,6 @@ public function testSettings(): void
{
$container = (new ContainerFactory())->createWithConfig(__DIR__ . '/ConfigurationSource/statie-settings.yml');
/** @var StatieConfiguration $configuration */
$configuration = $container->get(StatieConfiguration::class);
$this->assertSame(
@@ -30,7 +30,6 @@ protected function setUp(): void
$this->application->setCatchExceptions(false);
$this->application->setAutoExit(false);
/** @var SymfonyStyle $symfonyStyle */
$symfonyStyle = $this->container->get(SymfonyStyle::class);
$symfonyStyle->setVerbosity(OutputInterface::VERBOSITY_QUIET);
}
@@ -33,7 +33,6 @@ final class FileSystemWriterTest extends AbstractContainerAwareTestCase
protected function setUp(): void
{
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory($this->sourceDirectory);
$configuration->setOutputDirectory($this->outputDirectory);
@@ -28,7 +28,6 @@ protected function setUp(): void
$this->configurationFileDecorator = $this->container->get(ConfigurationFileDecorator::class);
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/ConfigurationFileDecoratorSource');
}
@@ -18,7 +18,6 @@ final class FileFactoryTest extends AbstractContainerAwareTestCase
protected function setUp(): void
{
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/FileFactorySource');
@@ -16,7 +16,6 @@ final class FileTest extends AbstractContainerAwareTestCase
protected function setUp(): void
{
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/FileFactorySource');
@@ -26,7 +26,6 @@ protected function setUp(): void
$this->markdownFileDecorator = $this->container->get(MarkdownFileDecorator::class);
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/MarkdownFileDecoratorSource');
}
@@ -38,7 +38,6 @@ protected function setUp(): void
$this->renderableFilesProcessor = $container->get(RenderableFilesProcessor::class);
$this->fileFinder = $container->get(FileFinder::class);
/** @var StatieConfiguration $configuration */
$configuration = $container->get(StatieConfiguration::class);
$configuration->setSourceDirectory($this->sourceDirectory);
$configuration->setOutputDirectory($this->outputDirectory);
@@ -23,14 +23,12 @@ final class RouteFileDecoratorTest extends AbstractContainerAwareTestCase
protected function setUp(): void
{
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/RouteFileDecoratorSource');
$this->fileFactory = $this->container->get(FileFactory::class);
$this->routeFileDecorator = $this->container->get(RouteFileDecorator::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/RouteFileDecoratorSource');
}
@@ -32,14 +32,12 @@ protected function setUp(): void
$this->fileFactory = $this->container->get(FileFactory::class);
/** @var StatieConfiguration $configuration */
$configuration = $this->container->get(StatieConfiguration::class);
$configuration->setSourceDirectory(__DIR__ . '/GithubFilterProviderSource/source');
}
public function test(): void
{
/** @var GithubFilterProvider $githubFilterProvider */
$githubFilterProvider = $this->container->get(GithubFilterProvider::class);
$githubEditPostUrlFilter = $githubFilterProvider->provide()['githubEditPostUrl'];
@@ -9,7 +9,6 @@ final class TimeFilterProviderTest extends AbstractContainerAwareTestCase
{
public function test(): void
{
/** @var TimeFilterProvider $timeFilterProvider */
$timeFilterProvider = $this->container->get(TimeFilterProvider::class);
$timeToSecondsFilter = $timeFilterProvider->provide()['timeToSeconds'];

0 comments on commit d53003e

Please sign in to comment.
You can’t perform that action at this time.