1<?php 2class Issue2811Test extends PHPUnit\Framework\TestCase 3{ 4 public function testOne() 5 { 6 $this->expectExceptionMessage('hello'); 7 8 throw new \Exception('hello'); 9 } 10} 11