Skip to content

Commit

Permalink
Fix few phpdocs format
Browse files Browse the repository at this point in the history
  • Loading branch information
VolCh committed Jun 11, 2018
1 parent 8e064b9 commit e093a65
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
8 changes: 4 additions & 4 deletions tests/GeneratedHydratorTest/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand All @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion tests/GeneratedHydratorTest/Factory/HydratorFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use GeneratedHydrator\ClassGenerator\DefaultHydratorGenerator;
use GeneratedHydrator\Configuration;
use GeneratedHydrator\Factory\HydratorFactory;
use GeneratedHydratorTestAsset\LazyLoadingMock;
use PHPUnit\Framework\TestCase;

/**
Expand Down Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e093a65

Please sign in to comment.