Skip to content

Commit 3ae87a8

Browse files
committed
Test: document getClassMethodsHydratorClassName() with explanation of why its there
Signed-off-by: Alex Denvir <coldfff@gmail.com>
1 parent c7099f8 commit 3ae87a8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/TableGatewayAbstractFactoryTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,12 @@ public function testFactoryReturnsTableGatewayInstanceBasedOnConfigurationWithou
243243
$this->assertAttributeInstanceOf(TestAsset\Bar::class, 'objectPrototype', $resultSet);
244244
}
245245

246+
/**
247+
* Simple check whether we should use ClassMethodsHydrator from laminas-hydrator 3
248+
* as ClassMethods from < 3.0.0 is deprecated and triggers an E_USER_DEPRECATED error
249+
*
250+
* @return string
251+
*/
246252
private function getClassMethodsHydratorClassName()
247253
{
248254
if (class_exists(ClassMethodsHydrator::class)) {

0 commit comments

Comments
 (0)