create(ParserFactory::PREFER_PHP7); $config = new TestConfig(); } public function setUp() { \Psalm\Checker\FileChecker::clearCache(); $this->project_checker = new \Psalm\Checker\ProjectChecker(); } /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage MixedAssignment */ public function testMixedAssignment() { $context = new Context('somefile.php'); $stmts = self::$parser->parse('project_checker, $stmts); $file_checker->visitAndAnalyzeMethods($context); } }