ProtobufTest\ProtocSerializeMessageTest::simpleMessageProvider PHP Метод

simpleMessageProvider() публичный Метод

    public function simpleMessageProvider()
    {
        $max = pow(2, 54) - 1;
        $min = -$max;
        return [['double', 1], ['double', 0.1], ['double', 1.0], ['double', -1], ['double', -0.1], ['double', -100000], ['double', 123456789.12345], ['double', -123456789.12345], ['float', 1], ['float', 0.1], ['float', 1.0], ['float', -1], ['float', -0.1], ['float', -100000], ['float', 12345.123], ['float', -12345.123], ['int64', 0], ['int64', 1], ['int64', -1], ['int64', 123456789123456789], ['int64', -123456789123456789], ['int64', $min], ['int64', 0], ['int64', 1], ['int64', 1000], ['int64', 123456789123456789], ['int64', PHP_INT_MAX], ['int64', $max], ['int32', 0], ['int32', 1], ['int32', -1], ['int32', 123456789], ['int32', -123456789], ['fixed64', 0], ['fixed64', 1], ['fixed64', 1000], ['fixed64', 123456789123456789], ['fixed32', 0], ['fixed32', 1], ['fixed32', 1000], ['fixed32', 123456789], ['bool', 0], ['bool', 1], ['string', ''], ['string', 'foo'], ['bytes', Stream::wrap('')], ['bytes', Stream::wrap('foo')], ['uint32', 0], ['uint32', 1], ['uint32', 1000], ['uint32', 123456789], ['sfixed32', 0], ['sfixed32', 1], ['sfixed32', -1], ['sfixed32', 123456789], ['sfixed32', -123456789], ['sfixed64', 0], ['sfixed64', 1], ['sfixed64', -1], ['sfixed64', 123456789123456789], ['sfixed64', -123456789123456789], ['sint32', 0], ['sint32', 1], ['sint32', -1], ['sint32', 123456789], ['sint32', -123456789], ['sint64', 0], ['sint64', 1], ['sint64', -1], ['sint64', 123456789123456789], ['sint64', -123456789123456789], ['sint64', $max], ['sint64', $min]];
    }