mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Namespace test providers under Internal cc @TysonAndre
This commit is contained in:
parent
0254322bed
commit
110ca66692
@ -4,6 +4,7 @@ namespace Psalm\Tests;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class ConfigTest extends TestCase
|
||||
{
|
||||
|
@ -4,6 +4,7 @@ namespace Psalm\Tests;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class DocumentationTest extends TestCase
|
||||
{
|
||||
|
@ -3,6 +3,7 @@ namespace Psalm\Tests;
|
||||
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class FileManipulationTest extends TestCase
|
||||
{
|
||||
|
@ -3,6 +3,7 @@ namespace Psalm\Tests;
|
||||
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class FileReferenceTest extends TestCase
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class AnalyzedMethodTest extends \Psalm\Tests\TestCase
|
||||
{
|
||||
@ -18,13 +18,13 @@ class AnalyzedMethodTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
|
||||
$providers = new Providers(
|
||||
$this->file_provider,
|
||||
new \Psalm\Tests\Provider\ParserInstanceCacheProvider(),
|
||||
new \Psalm\Tests\Internal\Provider\ParserInstanceCacheProvider(),
|
||||
null,
|
||||
null,
|
||||
new Provider\FakeFileReferenceCacheProvider()
|
||||
|
@ -5,7 +5,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class CachedStorageTest extends \Psalm\Tests\TestCase
|
||||
{
|
||||
@ -18,7 +18,7 @@ class CachedStorageTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
|
||||
|
@ -5,7 +5,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class ErrorAfterUpdateTest extends \Psalm\Tests\TestCase
|
||||
{
|
||||
@ -18,13 +18,13 @@ class ErrorAfterUpdateTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
|
||||
$providers = new Providers(
|
||||
$this->file_provider,
|
||||
new \Psalm\Tests\Provider\ParserInstanceCacheProvider(),
|
||||
new \Psalm\Tests\Internal\Provider\ParserInstanceCacheProvider(),
|
||||
null,
|
||||
null,
|
||||
new Provider\FakeFileReferenceCacheProvider()
|
||||
|
@ -5,7 +5,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class ErrorFixTest extends \Psalm\Tests\TestCase
|
||||
{
|
||||
@ -18,14 +18,14 @@ class ErrorFixTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
$config->throw_exception = false;
|
||||
|
||||
$providers = new Providers(
|
||||
$this->file_provider,
|
||||
new \Psalm\Tests\Provider\ParserInstanceCacheProvider(),
|
||||
new \Psalm\Tests\Internal\Provider\ParserInstanceCacheProvider(),
|
||||
null,
|
||||
null,
|
||||
new Provider\FakeFileReferenceCacheProvider()
|
||||
|
@ -5,7 +5,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class TemporaryUpdateTest extends \Psalm\Tests\TestCase
|
||||
{
|
||||
@ -18,14 +18,14 @@ class TemporaryUpdateTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
$config->throw_exception = false;
|
||||
|
||||
$providers = new Providers(
|
||||
$this->file_provider,
|
||||
new \Psalm\Tests\Provider\ParserInstanceCacheProvider(),
|
||||
new \Psalm\Tests\Internal\Provider\ParserInstanceCacheProvider(),
|
||||
null,
|
||||
null,
|
||||
new Provider\FakeFileReferenceCacheProvider()
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Psalm\Tests\Provider;
|
||||
namespace Psalm\Tests\Internal\Provider;
|
||||
|
||||
use Psalm\Config;
|
||||
use Psalm\Storage\ClassLikeStorage;
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Psalm\Tests\Provider;
|
||||
namespace Psalm\Tests\Internal\Provider;
|
||||
|
||||
class FakeFileProvider extends \Psalm\Internal\Provider\FileProvider
|
||||
{
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Psalm\Tests\Provider;
|
||||
namespace Psalm\Tests\Internal\Provider;
|
||||
|
||||
use Psalm\Config;
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Psalm\Tests\Provider;
|
||||
namespace Psalm\Tests\Internal\Provider;
|
||||
|
||||
use PhpParser;
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Psalm\Tests\Provider;
|
||||
namespace Psalm\Tests\Internal\Provider;
|
||||
|
||||
use Psalm\Storage\FileStorage;
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?php
|
||||
namespace Psalm\Tests\Provider;
|
||||
namespace Psalm\Tests\Internal\Provider;
|
||||
|
||||
use PhpParser;
|
||||
|
@ -5,6 +5,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Context;
|
||||
use Psalm\IssueBuffer;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class JsonOutputTest extends TestCase
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
|
||||
class CompletionTest extends \Psalm\Tests\TestCase
|
||||
@ -20,13 +20,13 @@ class CompletionTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
|
||||
$providers = new Providers(
|
||||
$this->file_provider,
|
||||
new \Psalm\Tests\Provider\ParserInstanceCacheProvider(),
|
||||
new \Psalm\Tests\Internal\Provider\ParserInstanceCacheProvider(),
|
||||
null,
|
||||
null,
|
||||
new Provider\FakeFileReferenceCacheProvider()
|
||||
|
@ -6,7 +6,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\TestConfig;
|
||||
use Psalm\Tests\Provider;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
|
||||
class SymbolLookupTest extends \Psalm\Tests\TestCase
|
||||
@ -21,13 +21,13 @@ class SymbolLookupTest extends \Psalm\Tests\TestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
|
||||
$providers = new Providers(
|
||||
$this->file_provider,
|
||||
new \Psalm\Tests\Provider\ParserInstanceCacheProvider(),
|
||||
new \Psalm\Tests\Internal\Provider\ParserInstanceCacheProvider(),
|
||||
null,
|
||||
null,
|
||||
new Provider\FakeFileReferenceCacheProvider()
|
||||
|
@ -7,6 +7,7 @@ use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Plugin\PluginEntryPointInterface;
|
||||
use Psalm\Plugin\RegistrationInterface;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
use SimpleXMLElement;
|
||||
|
||||
class PluginTest extends TestCase
|
||||
|
@ -4,6 +4,7 @@ namespace Psalm\Tests;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class ProjectAnalyzerTest extends TestCase
|
||||
{
|
||||
|
@ -6,6 +6,7 @@ use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Context;
|
||||
use Psalm\IssueBuffer;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class ReportOutputTest extends TestCase
|
||||
{
|
||||
|
@ -4,6 +4,7 @@ namespace Psalm\Tests;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class StubTest extends TestCase
|
||||
{
|
||||
|
@ -5,6 +5,7 @@ use PHPUnit\Framework\TestCase as BaseTestCase;
|
||||
use Psalm\Internal\Provider\Providers;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Internal\Analyzer\ProjectAnalyzer;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
use RuntimeException;
|
||||
|
||||
class TestCase extends BaseTestCase
|
||||
@ -46,7 +47,7 @@ class TestCase extends BaseTestCase
|
||||
|
||||
FileAnalyzer::clearCache();
|
||||
|
||||
$this->file_provider = new \Psalm\Tests\Provider\FakeFileProvider();
|
||||
$this->file_provider = new \Psalm\Tests\Internal\Provider\FakeFileProvider();
|
||||
|
||||
$config = new TestConfig();
|
||||
|
||||
|
@ -4,6 +4,7 @@ namespace Psalm\Tests;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class UnusedCodeTest extends TestCase
|
||||
{
|
||||
|
@ -4,6 +4,7 @@ namespace Psalm\Tests;
|
||||
use Psalm\Internal\Analyzer\FileAnalyzer;
|
||||
use Psalm\Config;
|
||||
use Psalm\Context;
|
||||
use Psalm\Tests\Internal\Provider;
|
||||
|
||||
class UnusedVariableTest extends TestCase
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user