}
}
- /**
- * @expectedException \RuntimeException
- * @expectedExceptionMessage Invalid position information
- */
public function testInvalidPosInfo() {
+ $this->expectException(\RuntimeException::class);
+ $this->expectExceptionMessage('Invalid position information');
$error = new Error('Some error', [
'startFilePos' => 10,
'endFilePos' => 11,