PHP code example of testo / bridge-rector
1. Go to this page and download the library: Download testo/bridge-rector library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
testo / bridge-rector example snippets
return RectorConfig::configure()
->withPaths([__DIR__ . '/tests'])
->withSets([TestoRectorSetList::PHPUNIT_TO_TESTO, TestoRectorSetList::PHPUNIT_TO_DOUBLE]);
// rector.php
use Rector\Config\RectorConfig;
use Testo\Bridge\Rector\Set\TestoRectorSetList;
return RectorConfig::configure()
->withPaths([__DIR__ . '/tests'])
->withSets([TestoRectorSetList::TESTO_TO_PHPUNIT]);
#[TestRectorFixtures('MyRule')]
#[Covers(MyRule::class)]
#[Covers(MyHelper::class)]
final class MyRule extends AbstractRector { /* ... */ }