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