create(ParserFactory::PREFER_PHP7); $config = new TestConfig(); } public function setUp() { FileChecker::clearCache(); } /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage InvalidArgument */ public function testEchoClass() { $stmts = self::$parser->parse('check(true, true, $context); } /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage InvalidToString */ public function testInvalidToStringReturnType() { $stmts = self::$parser->parse('check(true, true, $context); } /** * @expectedException \Psalm\Exception\CodeException * @expectedExceptionMessage InvalidToString */ public function testInvalidInferredToStringReturnType() { $stmts = self::$parser->parse('check(true, true, $context); } public function testValidToString() { $stmts = self::$parser->parse('check(true, true, $context); } public function testValidInferredToStringType() { $stmts = self::$parser->parse('check(true, true, $context); } }