File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 9
9
10
10
namespace PHP_CodeSniffer \Tests \Core \File ;
11
11
12
+ use PHP_CodeSniffer \Exceptions \RuntimeException ;
12
13
use PHP_CodeSniffer \Tests \Core \AbstractMethodUnitTest ;
13
14
14
15
class GetClassPropertiesTest extends AbstractMethodUnitTest
@@ -23,13 +24,13 @@ class GetClassPropertiesTest extends AbstractMethodUnitTest
23
24
*
24
25
* @dataProvider dataNotAClassException
25
26
*
26
- * @expectedException PHP_CodeSniffer\Exceptions\RuntimeException
27
- * @expectedExceptionMessage $stackPtr must be of type T_CLASS
28
- *
29
27
* @return void
30
28
*/
31
29
public function testNotAClassException ($ testMarker , $ tokenType )
32
30
{
31
+ $ this ->expectException (RuntimeException::class);
32
+ $ this ->expectExceptionMessage ('$stackPtr must be of type T_CLASS ' );
33
+
33
34
$ target = $ this ->getTargetToken ($ testMarker , $ tokenType );
34
35
self ::$ phpcsFile ->getClassProperties ($ target );
35
36
You can’t perform that action at this time.
0 commit comments