Skip to content

Commit

Permalink
Allow mocking result (SQS) (async-aws#483)
Browse files Browse the repository at this point in the history
  • Loading branch information
jderusse authored Apr 12, 2020
1 parent 0c5b04f commit e6f5d92
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Core/src/Test/ResultMockFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ private static function addPropertiesOnResult(\ReflectionClass $reflectionClass,
$classNameWithoutSuffix = substr($className, 0, -6);
} elseif ('Response' === substr($className, -8)) {
$classNameWithoutSuffix = substr($className, 0, -8);
} elseif ('Result' === substr($className, -6)) {
$classNameWithoutSuffix = substr($className, 0, -6);
} else {
throw new \LogicException(sprintf('Unknown class suffix: "%s"', $className));
}
Expand Down

0 comments on commit e6f5d92

Please sign in to comment.