public function testDecodeMultipleTypesOutsideOfListOrDictShouldThrowException() { $this->setExpectedException('Rych_Bencode_Exception'); Rych_Bencode_Decoder::decode('3:foo3:bar'); }
/** * Proxy method to {@link Rych_Bencode_Decoder::decode()}. * * @uses Rych_Bencode_Decoder::decode() * @param string $encodedValue * @param string $decodeType * @return mixed */ public static function decode($encodedValue, $decodeType = self::TYPE_ARRAY) { return Rych_Bencode_Decoder::decode($encodedValue, $decodeType); }