@@ -352,10 +352,10 @@ public function testUnhybridizedTorrent()
352352 {
353353 if ($ this ->protocol == TorrentFile::PROTOCOL_HYBRID ) {
354354 // After unhybridized to target 'v1' or 'v2', the returned torrent's protocol should be target protocol.
355- $ v1ProtocolOnlyTorrent = $ this ->torrent ->unhybridized (TorrentFile::PROTOCOL_V1 );
355+ $ v1ProtocolOnlyTorrent = $ this ->torrent ->unhybridizedTo (TorrentFile::PROTOCOL_V1 );
356356 $ this ->assertEquals (TorrentFile::PROTOCOL_V1 , $ v1ProtocolOnlyTorrent ->getProtocol ());
357357
358- $ v2ProtocolOnlyTorrent = $ this ->torrent ->unhybridized (TorrentFile::PROTOCOL_V2 );
358+ $ v2ProtocolOnlyTorrent = $ this ->torrent ->unhybridizedTo (TorrentFile::PROTOCOL_V2 );
359359 $ this ->assertEquals (TorrentFile::PROTOCOL_V2 , $ v2ProtocolOnlyTorrent ->getProtocol ());
360360
361361 // The origin torrent's protocol is not change.
@@ -371,15 +371,15 @@ public function testUnhybridizedTorrentToUnknownTarget()
371371 $ this ->expectException (ParseException::class);
372372 $ this ->expectExceptionMessage ('Unknown unhybridized target. ' );
373373
374- $ this ->torrent ->unhybridized ('unknown ' );
374+ $ this ->torrent ->unhybridizedTo ('unknown ' );
375375 } else {
376376 $ this ->markTestSkipped ();
377377 }
378378 }
379379
380380 public function testUnhybridizedTorrentToSameProtocol ()
381381 {
382- $ unhybridizedTorrentWithSameProtocol = $ this ->torrent ->unhybridized ($ this ->protocol );
382+ $ unhybridizedTorrentWithSameProtocol = $ this ->torrent ->unhybridizedTo ($ this ->protocol );
383383 $ this ->assertEquals ($ this ->protocol , $ unhybridizedTorrentWithSameProtocol ->getProtocol ());
384384 }
385385
@@ -389,7 +389,7 @@ public function testNonHybridTorrentCantConversion()
389389 // Conversion between v1-only and v2-only torrents is not allowed
390390 $ this ->expectException (ParseException::class);
391391 $ this ->expectExceptionMessage ('Unable to unhybridized, this torrent is ' );
392- $ this ->torrent ->unhybridized ($ this ->protocol == TorrentFile::PROTOCOL_V1 ? TorrentFile::PROTOCOL_V2 : TorrentFile::PROTOCOL_V1 );
392+ $ this ->torrent ->unhybridizedTo ($ this ->protocol == TorrentFile::PROTOCOL_V1 ? TorrentFile::PROTOCOL_V2 : TorrentFile::PROTOCOL_V1 );
393393 } else {
394394 $ this ->markTestSkipped ();
395395 }
@@ -401,7 +401,7 @@ public function testNonHybridTorrentCantUpgradeToHybrid()
401401 // v1-only and v2-only torrents can't upgrade to hybrid torrent
402402 $ this ->expectException (ParseException::class);
403403 $ this ->expectExceptionMessage ('Unable to unhybridized, this torrent is ' );
404- $ this ->torrent ->unhybridized (TorrentFile::PROTOCOL_HYBRID );
404+ $ this ->torrent ->unhybridizedTo (TorrentFile::PROTOCOL_HYBRID );
405405 } else {
406406 $ this ->markTestSkipped ();
407407 }
0 commit comments