From e093a65ad8fd92659e40b1921db2544200f52537 Mon Sep 17 00:00:00 2001 From: VolCh Date: Mon, 11 Jun 2018 09:08:52 +0300 Subject: [PATCH] Fix few phpdocs format --- .../CodeGenerator/Visitor/HydratorMethodsVisitorTest.php | 2 +- tests/GeneratedHydratorTest/ConfigurationTest.php | 8 ++++---- .../GeneratedHydratorTest/Factory/HydratorFactoryTest.php | 3 ++- .../Functional/HydratorFunctionalTest.php | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php b/tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php index 8ca28160..0b547698 100644 --- a/tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php +++ b/tests/GeneratedHydratorTest/CodeGenerator/Visitor/HydratorMethodsVisitorTest.php @@ -30,7 +30,7 @@ public function testBasicCodeGeneration(string $className, Class_ $classNode, ar { $visitor = new HydratorMethodsVisitor(new ReflectionClass($className)); - /* @var $modifiedAst Class_ */ + /** @var Class_ $modifiedAst */ $modifiedNode = $visitor->leaveNode($classNode); self::assertMethodExistence('hydrate', $modifiedNode); diff --git a/tests/GeneratedHydratorTest/ConfigurationTest.php b/tests/GeneratedHydratorTest/ConfigurationTest.php index d19a0f7b..54921131 100644 --- a/tests/GeneratedHydratorTest/ConfigurationTest.php +++ b/tests/GeneratedHydratorTest/ConfigurationTest.php @@ -88,7 +88,7 @@ public function testSetGetClassNameInflector() : void { self::assertInstanceOf(ClassNameInflectorInterface::class, $this->configuration->getClassNameInflector()); - /* @var $inflector ClassNameInflectorInterface|\PHPUnit_Framework_MockObject_MockObject */ + /** @var ClassNameInflectorInterface|\PHPUnit_Framework_MockObject_MockObject $inflector */ $inflector = $this->createMock(ClassNameInflectorInterface::class); $this->configuration->setClassNameInflector($inflector); @@ -103,7 +103,7 @@ public function testSetGetGeneratorStrategy() : void { self::assertInstanceOf(GeneratorStrategyInterface::class, $this->configuration->getGeneratorStrategy()); - /* @var $strategy GeneratorStrategyInterface|\PHPUnit_Framework_MockObject_MockObject */ + /** @var GeneratorStrategyInterface|\PHPUnit_Framework_MockObject_MockObject $strategy */ $strategy = $this->createMock(GeneratorStrategyInterface::class); $this->configuration->setGeneratorStrategy($strategy); @@ -130,7 +130,7 @@ public function testSetGetGeneratedClassAutoloader() : void { self::assertInstanceOf(AutoloaderInterface::class, $this->configuration->getGeneratedClassAutoloader()); - /* @var $autoloader AutoloaderInterface|\PHPUnit_Framework_MockObject_MockObject */ + /** @var AutoloaderInterface|\PHPUnit_Framework_MockObject_MockObject $autoloader */ $autoloader = $this->createMock(AutoloaderInterface::class); $this->configuration->setGeneratedClassAutoloader($autoloader); @@ -145,7 +145,7 @@ public function testSetGetHydratorGenerator() : void { self::assertInstanceOf(HydratorGenerator::class, $this->configuration->getHydratorGenerator()); - /* @var $generator HydratorGenerator */ + /** @var HydratorGenerator $generator*/ $generator = $this->createMock(HydratorGenerator::class); $this->configuration->setHydratorGenerator($generator); diff --git a/tests/GeneratedHydratorTest/Factory/HydratorFactoryTest.php b/tests/GeneratedHydratorTest/Factory/HydratorFactoryTest.php index f2cea203..67828739 100644 --- a/tests/GeneratedHydratorTest/Factory/HydratorFactoryTest.php +++ b/tests/GeneratedHydratorTest/Factory/HydratorFactoryTest.php @@ -11,6 +11,7 @@ use GeneratedHydrator\ClassGenerator\DefaultHydratorGenerator; use GeneratedHydrator\Configuration; use GeneratedHydrator\Factory\HydratorFactory; +use GeneratedHydratorTestAsset\LazyLoadingMock; use PHPUnit\Framework\TestCase; /** @@ -130,7 +131,7 @@ public function testWillTryAutoGeneration() ->will(self::returnValue('GeneratedHydratorTestAsset\\BaseClass')); $factory = new HydratorFactory($this->config); - /* @var $generatedClass \GeneratedHydratorTestAsset\LazyLoadingMock */ + /** @var LazyLoadingMock $generatedClass */ $generatedClass = $factory->getHydratorClass(); self::assertInstanceOf($generatedClassName, new $generatedClass()); diff --git a/tests/GeneratedHydratorTest/Functional/HydratorFunctionalTest.php b/tests/GeneratedHydratorTest/Functional/HydratorFunctionalTest.php index 4ac2f9ed..9591594c 100644 --- a/tests/GeneratedHydratorTest/Functional/HydratorFunctionalTest.php +++ b/tests/GeneratedHydratorTest/Functional/HydratorFunctionalTest.php @@ -170,7 +170,7 @@ private function generateHydrator(object $instance) : HydratorInterface $parentClassName = get_class($instance); $generatedClassName = __NAMESPACE__ . '\\' . UniqueIdentifierGenerator::getIdentifier('Foo'); $config = new Configuration($parentClassName); - /* @var $inflector ClassNameInflectorInterface|\PHPUnit_Framework_MockObject_MockObject */ + /** @var ClassNameInflectorInterface|\PHPUnit_Framework_MockObject_MockObject $inflector*/ $inflector = $this->createMock(ClassNameInflectorInterface::class); $inflector