Skip to content

Commit 1f8418e

Browse files
added test when we set the full path (#332)
1 parent dc5b5a1 commit 1f8418e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/Unit/Analyzer/ClassDescriptionBuilderTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,15 @@ public function test_it_should_add_attributes(): void
122122
$classDescription->getAttributes()
123123
);
124124
}
125+
126+
public function test_it_should_set_file_path(): void
127+
{
128+
$filePath = 'filePath/filePath2';
129+
$classDescriptionBuilder = ClassDescriptionBuilder::create();
130+
$classDescriptionBuilder->setClassName('FQCN');
131+
$classDescriptionBuilder->setFilePath($filePath);
132+
133+
$classDescription = $classDescriptionBuilder->get();
134+
$this->assertEquals($filePath, $classDescription->fullPath());
135+
}
125136
}

0 commit comments

Comments
 (0)