PHP Class Go\Instrument\Transformer\WeavingTransformerTest

Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: goaop/framework

Protected Properties

Свойство Type Description
$adviceMatcher null | Go\Core\AdviceMatcher
$kernel null | Go\Core\AspectKernel | PHPUnit_Framework_MockObject_MockObject
$transformer WeavingTransformer

Méthodes publiques

Méthode Description
setUp ( ) {@inheritDoc}
testAspectIsSkipped ( ) Do not make anything for aspect class
testEmptyNamespaceInFile ( ) Do not make anything for code without classes
testInterfaceIsSkipped ( ) Do not make anything for interface class
testMultipleClasses ( ) Testcase for multiple classes (@see https://github.com/lisachenko/go-aop-php/issues/71)
testMultipleNamespacesInOneFile ( ) It's a caution check that multiple namespaces are not yet supported
testTransformerWithIncludePaths ( ) Transformer verifies include paths
testWeaverForFinalClass ( ) Check that weaver can work with final class
testWeaverForNormalClass ( ) Main test case for class
testWeaverForPhp7Class ( ) Check that weaver can work with PHP7 classes

Méthodes protégées

Méthode Description
getAdviceMatcherMock ( ) : PHPUnit_Framework_MockObject_MockObject | AdviceMatcher Returns a mock for container
getKernelMock ( array $options, Go\Core\AspectContainer $container ) : PHPUnit_Framework_MockObject_MockObject | AspectKernel Returns a mock for kernel
normalizeWhitespaces ( string $value ) : string Normalizes string context

Private Methods

Méthode Description
getContainerMock ( ) : Go\Core\AspectContainer Returns a mock for the container
loadTest ( string $name ) : StreamMetaData

Method Details

getAdviceMatcherMock() protected méthode

Returns a mock for container
protected getAdviceMatcherMock ( ) : PHPUnit_Framework_MockObject_MockObject | AdviceMatcher
Résultat PHPUnit_Framework_MockObject_MockObject | Go\Core\AdviceMatcher

getKernelMock() protected méthode

Returns a mock for kernel
protected getKernelMock ( array $options, Go\Core\AspectContainer $container ) : PHPUnit_Framework_MockObject_MockObject | AspectKernel
$options array Additional options for kernel
$container Go\Core\AspectContainer Container instance
Résultat PHPUnit_Framework_MockObject_MockObject | Go\Core\AspectKernel

normalizeWhitespaces() protected méthode

Normalizes string context
protected normalizeWhitespaces ( string $value ) : string
$value string
Résultat string

setUp() public méthode

{@inheritDoc}
public setUp ( )

testAspectIsSkipped() public méthode

Do not make anything for aspect class
public testAspectIsSkipped ( )

testEmptyNamespaceInFile() public méthode

Do not make anything for code without classes

testInterfaceIsSkipped() public méthode

Do not make anything for interface class

testMultipleClasses() public méthode

Testcase for multiple classes (@see https://github.com/lisachenko/go-aop-php/issues/71)
public testMultipleClasses ( )

testMultipleNamespacesInOneFile() public méthode

It's a caution check that multiple namespaces are not yet supported

testTransformerWithIncludePaths() public méthode

Transformer verifies include paths

testWeaverForFinalClass() public méthode

Check that weaver can work with final class

testWeaverForNormalClass() public méthode

Main test case for class

testWeaverForPhp7Class() public méthode

Check that weaver can work with PHP7 classes

Property Details

$adviceMatcher protected_oe property

protected null|AdviceMatcher,Go\Core $adviceMatcher
Résultat null | Go\Core\AdviceMatcher

$kernel protected_oe property

protected null|AspectKernel,Go\Core|PHPUnit_Framework_MockObject_MockObject $kernel
Résultat null | Go\Core\AspectKernel | PHPUnit_Framework_MockObject_MockObject

$transformer protected_oe property

protected WeavingTransformer,Go\Instrument\Transformer $transformer
Résultat WeavingTransformer