create(ParserFactory::PREFER_PHP7); $config = new TestConfig(); } public function setUp() { FileChecker::clearCache(); } /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage ContinueOutsideLoop */ public function testContinueOutsideLoop() { $stmts = self::$parser->parse('check(true, true, $context); } /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage InvalidIterator */ public function testInvalidIterator() { $stmts = self::$parser->parse('check(true, true, $context); } }