addFile( 'somefile.php', 'hello = 5 } }' ); $this->analyzeFile('somefile.php', new Context()); } /** * @expectedException Psalm\Exception\CodeException * @expectedExceptionMessage ParseError - somefile.php:3 * @return void */ public function testClassMethodWithNoStmts() { $this->addFile( 'somefile.php', 'analyzeFile('somefile.php', new Context()); } /** * @expectedException Psalm\Exception\CodeException * @expectedExceptionMessage ParseError - somefile.php:5 * @return void */ public function testTypingReturnType() { $this->addFile( 'somefile.php', 'analyzeFile('somefile.php', new Context()); } /** * @expectedException Psalm\Exception\CodeException * @expectedExceptionMessage ParseError - somefile.php:6 * @return void */ public function testOverriddenUse() { $this->addFile( 'somefile.php', 'analyzeFile('somefile.php', new Context()); } }