1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00
psalm/tests/TestConfig.php
2019-04-29 12:07:34 -04:00

45 lines
1.1 KiB
PHP

<?php
namespace Psalm\Tests;
use Psalm\Config;
class TestConfig extends Config
{
/**
* @psalm-suppress PossiblyNullPropertyAssignmentValue because cache_directory isn't strictly nullable
*/
public function __construct()
{
parent::__construct();
$this->throw_exception = true;
$this->use_docblock_types = true;
$this->totally_typed = true;
$this->cache_directory = null;
$this->base_dir = getcwd() . DIRECTORY_SEPARATOR;
$this->project_files = Config\ProjectFileFilter::loadFromXMLElement(
new \SimpleXMLElement(
'<?xml version="1.0"?>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="src/Psalm/Internal/Stubs" />
</ignoreFiles>
</projectFiles>'
),
$this->base_dir,
true
);
$this->collectPredefinedConstants();
$this->collectPredefinedFunctions();
}
public function getComposerFilePathForClassLike($fq_classlike_name)
{
return false;
}
}