Updated Rector to commit c6d11cdbd6ee41a8b4e072a8fa76864174164358

c6d11cdbd6 [Testing] Reduce IO on AbstractRectorTestCase::doTestFile() (#3670)
This commit is contained in:
Tomas Votruba 2023-04-23 15:24:02 +00:00
parent f94c1ec03d
commit 73a34b3d2c
6 changed files with 20 additions and 14 deletions

View File

@ -5,7 +5,6 @@ namespace Rector\Testing\Fixture;
use RectorPrefix202304\Nette\Utils\FileSystem;
use RectorPrefix202304\Nette\Utils\Strings;
use RectorPrefix202304\Webmozart\Assert\Assert;
/**
* @api
*/
@ -29,4 +28,11 @@ final class FixtureSplitter
$fixtureFileContents = FileSystem::read($filePath);
return Strings::split($fixtureFileContents, self::SPLIT_LINE_REGEX);
}
/**
* @return array<string, string>
*/
public static function splitFixtureFileContents(string $fixtureFileContents) : array
{
return Strings::split($fixtureFileContents, self::SPLIT_LINE_REGEX);
}
}

View File

@ -99,7 +99,7 @@ abstract class AbstractRectorTestCase extends \Rector\Testing\PHPUnit\AbstractTe
$fixtureFileContents = FileSystem::read($fixtureFilePath);
if (FixtureSplitter::containsSplit($fixtureFileContents)) {
// changed content
[$inputFileContents, $expectedFileContents] = FixtureSplitter::split($fixtureFilePath);
[$inputFileContents, $expectedFileContents] = FixtureSplitter::splitFixtureFileContents($fixtureFileContents);
} else {
// no change
$inputFileContents = $fixtureFileContents;

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'bfd083e1c15a7d7e21ee0d1b3fd3b85a8ef80d74';
public const PACKAGE_VERSION = 'c6d11cdbd6ee41a8b4e072a8fa76864174164358';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-04-23 15:11:29';
public const RELEASE_DATE = '2023-04-23 22:19:58';
/**
* @var int
*/

2
vendor/autoload.php vendored
View File

@ -22,4 +22,4 @@ if (PHP_VERSION_ID < 50600) {
require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit5335646ca391f8b972aae047663a6e74::getLoader();
return ComposerAutoloaderInit5717f5d953bc96fa9e4c38d1fd2ffaa1::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer
class ComposerAutoloaderInit5335646ca391f8b972aae047663a6e74
class ComposerAutoloaderInit5717f5d953bc96fa9e4c38d1fd2ffaa1
{
private static $loader;
@ -22,17 +22,17 @@ class ComposerAutoloaderInit5335646ca391f8b972aae047663a6e74
return self::$loader;
}
spl_autoload_register(array('ComposerAutoloaderInit5335646ca391f8b972aae047663a6e74', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInit5717f5d953bc96fa9e4c38d1fd2ffaa1', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
spl_autoload_unregister(array('ComposerAutoloaderInit5335646ca391f8b972aae047663a6e74', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInit5717f5d953bc96fa9e4c38d1fd2ffaa1', 'loadClassLoader'));
require __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit5335646ca391f8b972aae047663a6e74::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInit5717f5d953bc96fa9e4c38d1fd2ffaa1::getInitializer($loader));
$loader->setClassMapAuthoritative(true);
$loader->register(true);
$filesToLoad = \Composer\Autoload\ComposerStaticInit5335646ca391f8b972aae047663a6e74::$files;
$filesToLoad = \Composer\Autoload\ComposerStaticInit5717f5d953bc96fa9e4c38d1fd2ffaa1::$files;
$requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload;
class ComposerStaticInit5335646ca391f8b972aae047663a6e74
class ComposerStaticInit5717f5d953bc96fa9e4c38d1fd2ffaa1
{
public static $files = array (
'ad155f8f1cf0d418fe49e248db8c661b' => __DIR__ . '/..' . '/react/promise/src/functions_include.php',
@ -3149,9 +3149,9 @@ class ComposerStaticInit5335646ca391f8b972aae047663a6e74
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit5335646ca391f8b972aae047663a6e74::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit5335646ca391f8b972aae047663a6e74::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit5335646ca391f8b972aae047663a6e74::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInit5717f5d953bc96fa9e4c38d1fd2ffaa1::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit5717f5d953bc96fa9e4c38d1fd2ffaa1::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit5717f5d953bc96fa9e4c38d1fd2ffaa1::$classMap;
}, null, ClassLoader::class);
}