Skip to content

Commit f0eb106

Browse files
authored
Merge pull request #11 from phpactor/classmap-extend-test
make testClassmap verify detection of 2 classes in same file
2 parents 14d6e7f + f7372f3 commit f0eb106

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/Integration/Composer/ComposerFileToClassTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function testClassmap()
125125
$this->loadExample('classmap.json');
126126
$this->assertFilePathToClassName(
127127
'/classmap/Acme/Post.php',
128-
[ 'Random\\Name\\Generator' ]
128+
[ 'Random\\Name\\Generator', 'Random\\Name\\SubGenerator' ]
129129
);
130130
}
131131

tests/Integration/Composer/project/classmap/Acme/Post.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,6 @@
55
class Generator
66
{
77
}
8+
9+
class SubGenerator
10+
{}

0 commit comments

Comments
 (0)