comparison core/modules/simpletest/tests/src/Unit/TestDiscoveryTest.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
383 $data['core-functionaljavascripttest'] = ['\Drupal\FunctionalJavascriptTests\ExampleTest', 'FunctionalJavascript']; 383 $data['core-functionaljavascripttest'] = ['\Drupal\FunctionalJavascriptTests\ExampleTest', 'FunctionalJavascript'];
384 384
385 return $data; 385 return $data;
386 } 386 }
387 387
388 /**
389 * Ensure that classes are not reflected when the docblock is empty.
390 *
391 * @covers ::getTestInfo
392 */
393 public function testGetTestInfoEmptyDocblock() {
394 // If getTestInfo() performed reflection, it won't be able to find the
395 // class we asked it to analyze, so it will throw a ReflectionException.
396 // We want to make sure it didn't do that, because we already did some
397 // analysis and already have an empty docblock. getTestInfo() will throw
398 // MissingGroupException because the annotation is empty.
399 $this->setExpectedException(MissingGroupException::class);
400 TestDiscovery::getTestInfo('Drupal\Tests\simpletest\ThisTestDoesNotExistTest', '');
401 }
402
388 } 403 }
389 404
390 class TestTestDiscovery extends TestDiscovery { 405 class TestTestDiscovery extends TestDiscovery {
391 406
392 /** 407 /**