comparison core/tests/Drupal/Tests/Component/Annotation/AnnotatedClassDiscoveryCachedTest.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
29 * 29 *
30 * @covers ::getDefinitions 30 * @covers ::getDefinitions
31 */ 31 */
32 public function testGetDefinitions() { 32 public function testGetDefinitions() {
33 // Path to the classes which we'll discover and parse annotation. 33 // Path to the classes which we'll discover and parse annotation.
34 $discovery_path = __DIR__ . '/Fixtures'; 34 $discovery_path = __DIR__ . '/Fixtures';
35 // File path that should be discovered within that directory. 35 // File path that should be discovered within that directory.
36 $file_path = $discovery_path . '/PluginNamespace/DiscoveryTest1.php'; 36 $file_path = $discovery_path . '/PluginNamespace/DiscoveryTest1.php';
37 37
38 $discovery = new AnnotatedClassDiscovery(['com\example' => [$discovery_path]]); 38 $discovery = new AnnotatedClassDiscovery(['com\example' => [$discovery_path]]);
39 $this->assertEquals([ 39 $this->assertEquals([