signBlob(self::STRING_TO_SIGN, $useOpenSsl); $this->assertEquals(implode('', $this->signedString), $res); } public function useOpenSsl() { return [[true], [false]]; } } class ServiceAccountSignerTraitImpl { use ServiceAccountSignerTrait; private $auth; public function __construct($signingKey) { $this->auth = new AuthStub; $this->auth->signingKey = $signingKey; } } class AuthStub { public $signingKey; public function getSigningKey() { return $this->signingKey; } }