1
0
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:
Brown 2018-11-12 10:57:05 -05:00 committed by Matthew Brown
parent 0254322bed
commit 110ca66692
25 changed files with 39 additions and 27 deletions

View File

@ -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
{

View File

@ -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
{

View File

@ -3,6 +3,7 @@ namespace Psalm\Tests;
use Psalm\Internal\Analyzer\FileAnalyzer;
use Psalm\Context;
use Psalm\Tests\Internal\Provider;
class FileManipulationTest extends TestCase
{

View File

@ -3,6 +3,7 @@ namespace Psalm\Tests;
use Psalm\Internal\Analyzer\FileAnalyzer;
use Psalm\Context;
use Psalm\Tests\Internal\Provider;
class FileReferenceTest extends TestCase
{

View File

@ -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()

View File

@ -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();

View File

@ -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()

View File

@ -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()

View File

@ -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()

View File

@ -1,5 +1,5 @@
<?php
namespace Psalm\Tests\Provider;
namespace Psalm\Tests\Internal\Provider;
use Psalm\Config;
use Psalm\Storage\ClassLikeStorage;

View File

@ -1,5 +1,5 @@
<?php
namespace Psalm\Tests\Provider;
namespace Psalm\Tests\Internal\Provider;
class FakeFileProvider extends \Psalm\Internal\Provider\FileProvider
{

View File

@ -1,5 +1,5 @@
<?php
namespace Psalm\Tests\Provider;
namespace Psalm\Tests\Internal\Provider;
use Psalm\Config;

View File

@ -1,5 +1,5 @@
<?php
namespace Psalm\Tests\Provider;
namespace Psalm\Tests\Internal\Provider;
use PhpParser;

View File

@ -1,5 +1,5 @@
<?php
namespace Psalm\Tests\Provider;
namespace Psalm\Tests\Internal\Provider;
use Psalm\Storage\FileStorage;

View File

@ -1,5 +1,5 @@
<?php
namespace Psalm\Tests\Provider;
namespace Psalm\Tests\Internal\Provider;
use PhpParser;

View File

@ -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
{

View File

@ -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()

View File

@ -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()

View File

@ -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

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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();

View File

@ -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
{

View File

@ -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
{