LegacyNamespaceFilterTest

Extends \PHPUnit_Framework_TestCase

Tests the phpDocumentor\Plugin\LegacyNamespaceConverter\LegacyNamespaceFilter class.

package

Default

Methods

Creates a mocked Descriptor.

createDescriptorMock() : \Mockery\MockInterface|\phpDocumentor\Descriptor\DescriptorAbstract

Response

\Mockery\MockInterface|\phpDocumentor\Descriptor\DescriptorAbstract

Initializes the fixture and mocks any dependencies.

setUp() : void

testClassNameWithEmptyNamespace

testClassNameWithEmptyNamespace() 
covers

testClassNameWithNewNamespaceWillNotBeModified

testClassNameWithNewNamespaceWillNotBeModified() 
covers

testConvertClassNameWithUnderscoreWillBeConvertedToNamespace

testConvertClassNameWithUnderscoreWillBeConvertedToNamespace() 
covers

testMixedNamespacesCanBeUnified

testMixedNamespacesCanBeUnified() 
covers

testMultiLevelLegacyNamespace

testMultiLevelLegacyNamespace() 
covers

testPrefixedNamespace

testPrefixedNamespace() 
covers

testPrefixedNamespaceWithNamespacedClassWillNotBeModified

testPrefixedNamespaceWithNamespacedClassWillNotBeModified() 
covers

Properties

filter

filter : \phpDocumentor\Plugin\LegacyNamespaceConverter\LegacyNamespaceFilter

builderMock

builderMock : \phpDocumentor\Descriptor\ProjectDescriptorBuilder|\Mockery\MockInterface
var

Type(s)

\phpDocumentor\Descriptor\ProjectDescriptorBuilder|\Mockery\MockInterface