add guzzle50 init set

This commit is contained in:
Tomas Votruba 2018-08-11 11:45:24 +02:00
parent 2783013a5b
commit e398014a97
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
services:
Rector\Rector\Function_\FunctionToMethodCallRector:
$functionToMethodCall:
'GuzzleHttp\json_decode': ['GuzzleHttp\Utils', 'jsonDecode']
'GuzzleHttp\get_path': ['GuzzleHttp\Utils': 'getPath']

View File

@ -1,6 +1,6 @@
<?php declare(strict_types=1);
namespace Rector\Tests\Rector\Function_\FunctionToMethodCallRector;
namespace Rector\Tests\Rector\Function_\FunctionToStaticCallRector;
use Iterator;
use Rector\Testing\PHPUnit\AbstractRectorTestCase;
@ -8,7 +8,7 @@ use Rector\Testing\PHPUnit\AbstractRectorTestCase;
/**
* @see \Rector\Rector\Function_\FunctionToStaticCallRector
*/
final class FunctionToMethodCallRectorTest extends AbstractRectorTestCase
final class FunctionToStaticCallRectorTest extends AbstractRectorTestCase
{
/**
* @dataProvider provideWrongToFixedFiles()