Skip to content

Commit

Permalink
Apply rector
Browse files Browse the repository at this point in the history
  • Loading branch information
guanguans committed May 21, 2023
1 parent 16c6314 commit 89eb9b7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 4 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,12 @@
UnSpreadOperatorRector::class => [
__DIR__.'/src/Concerns/WithDumpable.php',
],
StaticClosureRector::class => [
__DIR__.'/tests/Concerns/WithRunableTest.php',
],

// paths
__DIR__.'/src/xxx.php',
__DIR__.'/tests/AspectMock',
'**/Fixture*',
'**/Fixture/*',
'**/Fixtures*',
Expand Down
File renamed without changes.
16 changes: 9 additions & 7 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,21 @@
* This source file is subject to the MIT license that is bundled.
*/

namespace Guanguans\Tests;

use AspectMock\Kernel;

require_once __DIR__.'/../vendor/autoload.php';

// Fix broken OpenSSL lib on Travis CI
if (getenv('TRAVIS')) {
if (! defined('CURL_SSLVERSION_TLSv1_2')) {
define('CURL_SSLVERSION_TLSv1_2', 6);
}
if (getenv('TRAVIS') && ! \defined('CURL_SSLVERSION_TLSv1_2')) {
\define('CURL_SSLVERSION_TLSv1_2', 6);
}

$kernel = \AspectMock\Kernel::getInstance();
$kernel = Kernel::getInstance();
$kernel->init([
'debug' => true,
'cacheDir' => __DIR__.'/aspect-mock-cache',
'debug' => false,
'cacheDir' => __DIR__.'/AspectMock',
'includePaths' => [__DIR__.'/../src/Support'],
'excludePaths' => [
__DIR__.'/../vendor',
Expand Down

0 comments on commit 89eb9b7

Please sign in to comment.