PHP 클래스 Go\Instrument\Transformer\WeavingTransformerTest

상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: goaop/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$adviceMatcher null | Go\Core\AdviceMatcher
$kernel null | Go\Core\AspectKernel | PHPUnit_Framework_MockObject_MockObject
$transformer WeavingTransformer

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
getContainerMock ( ) : Go\Core\AspectContainer Returns a mock for the container
loadTest ( string $name ) : StreamMetaData

메소드 상세

getAdviceMatcherMock() 보호된 메소드

Returns a mock for container
protected getAdviceMatcherMock ( ) : PHPUnit_Framework_MockObject_MockObject | AdviceMatcher
리턴 PHPUnit_Framework_MockObject_MockObject | Go\Core\AdviceMatcher

getKernelMock() 보호된 메소드

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
리턴 PHPUnit_Framework_MockObject_MockObject | Go\Core\AspectKernel

normalizeWhitespaces() 보호된 메소드

Normalizes string context
protected normalizeWhitespaces ( string $value ) : string
$value string
리턴 string

setUp() 공개 메소드

{@inheritDoc}
public setUp ( )

testAspectIsSkipped() 공개 메소드

Do not make anything for aspect class
public testAspectIsSkipped ( )

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)
public testMultipleClasses ( )

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

프로퍼티 상세

$adviceMatcher 보호되어 있는 프로퍼티

protected null|AdviceMatcher,Go\Core $adviceMatcher
리턴 null | Go\Core\AdviceMatcher

$kernel 보호되어 있는 프로퍼티

protected null|AspectKernel,Go\Core|PHPUnit_Framework_MockObject_MockObject $kernel
리턴 null | Go\Core\AspectKernel | PHPUnit_Framework_MockObject_MockObject

$transformer 보호되어 있는 프로퍼티

protected WeavingTransformer,Go\Instrument\Transformer $transformer
리턴 WeavingTransformer