2016-12-14 12:28:38 -05:00
|
|
|
<?php
|
|
|
|
namespace Psalm\Tests;
|
|
|
|
|
|
|
|
use Psalm\Config;
|
|
|
|
|
|
|
|
class TestConfig extends Config
|
|
|
|
{
|
2016-12-20 17:29:52 +00:00
|
|
|
/**
|
2018-01-10 10:56:43 -05:00
|
|
|
* @psalm-suppress PossiblyNullPropertyAssignmentValue because cache_directory isn't strictly nullable
|
2016-12-20 17:29:52 +00:00
|
|
|
*/
|
2016-12-14 12:28:38 -05:00
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
2016-12-18 19:00:32 -05:00
|
|
|
|
|
|
|
$this->throw_exception = true;
|
|
|
|
$this->use_docblock_types = true;
|
2016-12-18 19:17:39 -05:00
|
|
|
$this->totally_typed = true;
|
2016-12-20 17:29:52 +00:00
|
|
|
$this->cache_directory = null;
|
2017-04-03 12:36:49 -04:00
|
|
|
|
2017-07-25 17:04:58 -04:00
|
|
|
$this->base_dir = getcwd() . DIRECTORY_SEPARATOR;
|
|
|
|
|
|
|
|
$this->project_files = new Config\ProjectFileFilter(true);
|
|
|
|
$this->project_files->addDirectory($this->base_dir . 'src');
|
|
|
|
|
2017-04-03 12:36:49 -04:00
|
|
|
$this->collectPredefinedConstants();
|
|
|
|
$this->collectPredefinedFunctions();
|
2016-12-14 12:28:38 -05:00
|
|
|
}
|
2018-03-03 15:25:35 -05:00
|
|
|
|
|
|
|
public function getComposerFilePathForClassLike($fq_classlike_name)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
2016-12-14 12:28:38 -05:00
|
|
|
}
|