We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cefe56d commit e14df5eCopy full SHA for e14df5e
tests/Test.php
@@ -1178,15 +1178,19 @@ public function testClassListValue()
1178
1179
/**
1180
* @group classList
1181
- * @expectedException \Exception
1182
*/
1183
public function testClassListUndefinedProperty()
1184
{
1185
$dom = new HTML5DOMDocument();
1186
$dom->loadHTML('<html><body class=" a b c b a c"></body></html>');
1187
1188
$html = $dom->querySelector('html');
1189
- $html->classList->someProperty;
+ try {
+ $html->classList->someProperty;
1190
+ $this->assertTrue(false); // should not get here
1191
+ } catch (\Exception $e) {
1192
+ $this->assertTrue(true);
1193
+ }
1194
}
1195
1196
0 commit comments