Skip to content

Commit

Permalink
Test: document getClassMethodsHydratorClassName() with explanation of…
Browse files Browse the repository at this point in the history
… why its there

Signed-off-by: Alex Denvir <coldfff@gmail.com>
  • Loading branch information
alexdenvir committed Apr 9, 2020
1 parent c7099f8 commit 3ae87a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/TableGatewayAbstractFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,12 @@ public function testFactoryReturnsTableGatewayInstanceBasedOnConfigurationWithou
$this->assertAttributeInstanceOf(TestAsset\Bar::class, 'objectPrototype', $resultSet);
}

/**
* Simple check whether we should use ClassMethodsHydrator from laminas-hydrator 3
* as ClassMethods from < 3.0.0 is deprecated and triggers an E_USER_DEPRECATED error
*
* @return string
*/
private function getClassMethodsHydratorClassName()
{
if (class_exists(ClassMethodsHydrator::class)) {
Expand Down

0 comments on commit 3ae87a8

Please sign in to comment.