BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest Class Reference

Inherits PHPUnit\Framework\TestCase.

Inherited by PHP_CodeSniffer\Standards\Generic\Tests\Arrays\DisallowLongArraySyntaxUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Arrays\DisallowShortArraySyntaxUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Classes\DuplicateClassNameUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Classes\OpeningBraceSameLineUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\AssignmentInConditionUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\EmptyStatementUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\ForLoopShouldBeWhileLoopUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\ForLoopWithTestFunctionCallUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\JumbledIncrementerUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\UnconditionalIfStatementUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\UnnecessaryFinalModifierUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\UnusedFunctionParameterUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\CodeAnalysis\UselessOverridingMethodUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Commenting\DocCommentUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Commenting\FixmeUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Commenting\TodoUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\ControlStructures\InlineControlStructureUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\ByteOrderMarkUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\EndFileNewlineUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\EndFileNoNewlineUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\InlineHTMLUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\LineEndingsUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\LineLengthUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\LowercasedFilenameUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\OneClassPerFileUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\OneInterfacePerFileUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\OneObjectStructurePerFileUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Files\OneTraitPerFileUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Formatting\DisallowMultipleStatementsUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Formatting\MultipleStatementAlignmentUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Formatting\NoSpaceAfterCastUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Formatting\SpaceAfterCastUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Formatting\SpaceAfterNotUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Functions\CallTimePassByReferenceUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Functions\FunctionCallArgumentSpacingUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Functions\OpeningFunctionBraceBsdAllmanUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Functions\OpeningFunctionBraceKernighanRitchieUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Metrics\CyclomaticComplexityUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Metrics\NestingLevelUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions\CamelCapsFunctionNameUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions\ConstructorNameUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\NamingConventions\UpperCaseConstantNameUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\BacktickOperatorUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\CharacterBeforePHPOpeningTagUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\ClosingPHPTagUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\DisallowAlternativePHPTagsUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\DisallowShortOpenTagUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\ForbiddenFunctionsUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\LowerCaseConstantUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\LowerCaseKeywordUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\NoSilencedErrorsUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\SAPIUsageUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\SyntaxUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\PHP\UpperCaseConstantUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\Strings\UnnecessaryStringConcatUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace\DisallowSpaceIndentUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace\DisallowTabIndentUnitTest, PHP_CodeSniffer\Standards\Generic\Tests\WhiteSpace\ScopeIndentUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Channels\DisallowSelfActionsUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Channels\IncludeSystemUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Channels\UnusedSystemUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Commenting\FunctionCommentUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\CSS\BrowserSpecificStylesUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Debug\DebugCodeUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Debug\FirebugConsoleUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Objects\AssignThisUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Objects\CreateWidgetTypeCallbackUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Objects\DisallowNewWidgetUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\PHP\AjaxNullComparisonUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\PHP\EvalObjectFactoryUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\PHP\GetRequestDataUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\PHP\ReturnFunctionValueUnitTest, PHP_CodeSniffer\Standards\MySource\Tests\Strings\JoinStringsUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Classes\ClassDeclarationUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Commenting\ClassCommentUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Commenting\FileCommentUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Commenting\FunctionCommentUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Commenting\InlineCommentUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures\ControlSignatureUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\ControlStructures\MultiLineConditionUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Files\IncludingFileUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Formatting\MultiLineAssignmentUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Functions\FunctionCallSignatureUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Functions\FunctionDeclarationUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\Functions\ValidDefaultValueUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions\ValidClassNameUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions\ValidFunctionNameUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\NamingConventions\ValidVariableNameUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace\ObjectOperatorIndentUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace\ScopeClosingBraceUnitTest, PHP_CodeSniffer\Standards\PEAR\Tests\WhiteSpace\ScopeIndentUnitTest, PHP_CodeSniffer\Standards\PSR1\Tests\Classes\ClassDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR1\Tests\Files\SideEffectsUnitTest, PHP_CodeSniffer\Standards\PSR1\Tests\Methods\CamelCapsMethodNameUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Classes\ClassDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Classes\PropertyDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures\ControlStructureSpacingUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures\ElseIfDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\ControlStructures\SwitchDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Files\ClosingTagUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Files\EndFileNewlineUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Methods\FunctionCallSignatureUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Methods\FunctionClosingBraceUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Methods\MethodDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces\NamespaceDeclarationUnitTest, PHP_CodeSniffer\Standards\PSR2\Tests\Namespaces\UseDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Arrays\ArrayBracketSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Arrays\ArrayDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Classes\ClassDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Classes\ClassFileNameUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Classes\DuplicatePropertyUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Classes\LowercaseClassKeywordsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Classes\SelfMemberReferenceUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Classes\ValidClassNameUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\BlockCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\ClassCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\ClosingDeclarationCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\DocCommentAlignmentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\EmptyCatchCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\FileCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\FunctionCommentThrowTagUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\FunctionCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\InlineCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\LongConditionClosingCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\PostStatementCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Commenting\VariableCommentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\ControlSignatureUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\ElseIfDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\ForEachLoopDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\ForLoopDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\InlineIfDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\LowercaseDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\ControlStructures\SwitchDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ClassDefinitionClosingBraceSpaceUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ClassDefinitionNameSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ClassDefinitionOpeningBraceSpaceUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ColonSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ColourDefinitionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\DisallowMultipleStyleDefinitionsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\DuplicateClassDefinitionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\DuplicateStyleDefinitionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\EmptyClassDefinitionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\EmptyStyleDefinitionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ForbiddenStylesUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\IndentationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\LowercaseStyleDefinitionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\MissingColonUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\NamedColoursUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\OpacityUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\SemicolonSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\CSS\ShorthandSizeUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Debug\JavaScriptLintUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Debug\JSLintUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Files\FileExtensionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Formatting\OperatorBracketUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Functions\FunctionDeclarationArgumentSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Functions\FunctionDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Functions\FunctionDuplicateArgumentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Functions\GlobalFunctionUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Functions\LowercaseFunctionKeywordsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Functions\MultiLineFunctionDeclarationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions\ValidFunctionNameUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\NamingConventions\ValidVariableNameUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Objects\DisallowObjectStringIndexUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Objects\ObjectInstantiationUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Objects\ObjectMemberCommaUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Operators\ComparisonOperatorUsageUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Operators\IncrementDecrementUsageUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Operators\ValidLogicalOperatorsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\CommentedOutCodeUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DisallowBooleanStatementUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DisallowComparisonAssignmentUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DisallowInlineIfUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DisallowMultipleAssignmentsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DisallowObEndFlushUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DisallowSizeFunctionsInLoopsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\DiscouragedFunctionsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\EmbeddedPhpUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\EvalUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\ForbiddenFunctionsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\GlobalKeywordUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\HeredocUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\InnerFunctionsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\LowercasePHPFunctionsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\PHP\NonExecutableCodeUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Scope\MemberVarScopeUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Scope\MethodScopeUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Scope\StaticThisUsageUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Strings\ConcatenationSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Strings\DoubleQuoteUsageUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\Strings\EchoedStringsUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\CastSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\ControlStructureSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\FunctionClosingBraceSpaceUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\FunctionOpeningBraceSpaceUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\FunctionSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\LanguageConstructSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\LogicalOperatorSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\MemberVarSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\ObjectOperatorSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\OperatorSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\PropertyLabelSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\ScopeClosingBraceUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\ScopeKeywordSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\SemicolonSpacingUnitTest, PHP_CodeSniffer\Standards\Squiz\Tests\WhiteSpace\SuperfluousWhitespaceUnitTest, PHP_CodeSniffer\Standards\Zend\Tests\Debug\CodeAnalyzerUnitTest, PHP_CodeSniffer\Standards\Zend\Tests\Files\ClosingTagUnitTest, and PHP_CodeSniffer\Standards\Zend\Tests\NamingConventions\ValidVariableNameUnitTest.

Collaboration diagram for PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest:

Public Member Functions

 testSniff ()
 
 generateFailureMessages (LocalFile $file)
 
 setCliValues ($filename, $config)
 
- Public Member Functions inherited from PHPUnit_Framework_TestCase
 __construct ($name=null, array $data=array(), $dataName= '')
 
 toString ()
 
 count ()
 
 getAnnotations ()
 
 getName ($withDataSet=true)
 
 getSize ()
 
 getActualOutput ()
 
 hasOutput ()
 
 expectOutputRegex ($expectedRegex)
 
 expectOutputString ($expectedString)
 
 hasPerformedExpectationsOnOutput ()
 
 hasExpectationOnOutput ()
 
 getExpectedException ()
 
 setExpectedException ($exceptionName, $exceptionMessage= '', $exceptionCode=null)
 
 setExpectedExceptionRegExp ($exceptionName, $exceptionMessageRegExp= '', $exceptionCode=null)
 
 setUseErrorHandler ($useErrorHandler)
 
 getStatus ()
 
 getStatusMessage ()
 
 hasFailed ()
 
 run (PHPUnit_Framework_TestResult $result=null)
 
 runBare ()
 
 setName ($name)
 
 setDependencies (array $dependencies)
 
 hasDependencies ()
 
 setDependencyInput (array $dependencyInput)
 
 setDisallowChangesToGlobalState ($disallowChangesToGlobalState)
 
 setBackupGlobals ($backupGlobals)
 
 setBackupStaticAttributes ($backupStaticAttributes)
 
 setRunTestInSeparateProcess ($runTestInSeparateProcess)
 
 setPreserveGlobalState ($preserveGlobalState)
 
 setInIsolation ($inIsolation)
 
 isInIsolation ()
 
 getResult ()
 
 setResult ($result)
 
 setOutputCallback ($callback)
 
 getTestResultObject ()
 
 setTestResultObject (PHPUnit_Framework_TestResult $result)
 
 getMock ($originalClassName, $methods=array(), array $arguments=array(), $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false, $callOriginalMethods=false, $proxyTarget=null)
 
 getMockBuilder ($className)
 
 getMockForAbstractClass ($originalClassName, array $arguments=array(), $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=array(), $cloneArguments=false)
 
 getMockForTrait ($traitName, array $arguments=array(), $mockClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $mockedMethods=array(), $cloneArguments=false)
 
 addToAssertionCount ($count)
 
 getNumAssertions ()
 

Public Attributes

 $standardsDir = null
 
 $testsDir = null
 

Protected Member Functions

 setUp ()
 
 getTestFiles ($testFileBase)
 
 shouldSkipTest ()
 
 getErrorList ()
 
 getWarningList ()
 
- Protected Member Functions inherited from PHPUnit_Framework_TestCase
 setExpectedExceptionFromAnnotation ()
 
 setUseErrorHandlerFromAnnotation ()
 
 checkRequirements ()
 
 runTest ()
 
 verifyMockObjects ()
 
 iniSet ($varName, $newValue)
 
 setLocale ()
 
 getMockClass ($originalClassName, $methods=array(), array $arguments=array(), $mockClassName= '', $callOriginalConstructor=false, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false)
 
 getMockFromWsdl ($wsdlFile, $originalClassName= '', $mockClassName= '', array $methods=array(), $callOriginalConstructor=true, array $options=array())
 
 getObjectForTrait ($traitName, array $arguments=array(), $traitClassName= '', $callOriginalConstructor=true, $callOriginalClone=true, $callAutoload=true, $cloneArguments=false)
 
 prophesize ($classOrInterface=null)
 
 getDataSetAsString ($includeData=true)
 
 createResult ()
 
 handleDependencies ()
 
 setUp ()
 
 assertPreConditions ()
 
 assertPostConditions ()
 
 tearDown ()
 
 onNotSuccessfulTest (Exception $e)
 
 prepareTemplate (Text_Template $template)
 
 getMockObjectGenerator ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from PHPUnit_Framework_TestCase
 $backupGlobals = null
 
 $backupGlobalsBlacklist = array()
 
 $backupStaticAttributes = null
 
 $backupStaticAttributesBlacklist = array()
 
 $runTestInSeparateProcess = null
 
 $preserveGlobalState = true
 

Additional Inherited Members

- Static Public Member Functions inherited from PHPUnit_Framework_TestCase
static any ()
 
static never ()
 
static atLeast ($requiredInvocations)
 
static atLeastOnce ()
 
static once ()
 
static exactly ($count)
 
static atMost ($allowedInvocations)
 
static at ($index)
 
static returnValue ($value)
 
static returnValueMap (array $valueMap)
 
static returnArgument ($argumentIndex)
 
static returnCallback ($callback)
 
static returnSelf ()
 
static throwException (Exception $exception)
 
static onConsecutiveCalls ()
 
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- Static Public Member Functions inherited from PHPUnit_Framework_Assert
static assertArrayHasKey ($key, $array, $message= '')
 
static assertArraySubset ($subset, $array, $strict=false, $message= '')
 
static assertArrayNotHasKey ($key, $array, $message= '')
 
static assertContains ($needle, $haystack, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertAttributeContains ($needle, $haystackAttributeName, $haystackClassOrObject, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertNotContains ($needle, $haystack, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertAttributeNotContains ($needle, $haystackAttributeName, $haystackClassOrObject, $message= '', $ignoreCase=false, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static assertContainsOnly ($type, $haystack, $isNativeType=null, $message= '')
 
static assertContainsOnlyInstancesOf ($classname, $haystack, $message= '')
 
static assertAttributeContainsOnly ($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType=null, $message= '')
 
static assertNotContainsOnly ($type, $haystack, $isNativeType=null, $message= '')
 
static assertAttributeNotContainsOnly ($type, $haystackAttributeName, $haystackClassOrObject, $isNativeType=null, $message= '')
 
static assertCount ($expectedCount, $haystack, $message= '')
 
static assertAttributeCount ($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertNotCount ($expectedCount, $haystack, $message= '')
 
static assertAttributeNotCount ($expectedCount, $haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertEquals ($expected, $actual, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertAttributeEquals ($expected, $actualAttributeName, $actualClassOrObject, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertNotEquals ($expected, $actual, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertAttributeNotEquals ($expected, $actualAttributeName, $actualClassOrObject, $message= '', $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static assertEmpty ($actual, $message= '')
 
static assertAttributeEmpty ($haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertNotEmpty ($actual, $message= '')
 
static assertAttributeNotEmpty ($haystackAttributeName, $haystackClassOrObject, $message= '')
 
static assertGreaterThan ($expected, $actual, $message= '')
 
static assertAttributeGreaterThan ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertGreaterThanOrEqual ($expected, $actual, $message= '')
 
static assertAttributeGreaterThanOrEqual ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertLessThan ($expected, $actual, $message= '')
 
static assertAttributeLessThan ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertLessThanOrEqual ($expected, $actual, $message= '')
 
static assertAttributeLessThanOrEqual ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertFileEquals ($expected, $actual, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertFileNotEquals ($expected, $actual, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertStringEqualsFile ($expectedFile, $actualString, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertStringNotEqualsFile ($expectedFile, $actualString, $message= '', $canonicalize=false, $ignoreCase=false)
 
static assertFileExists ($filename, $message= '')
 
static assertFileNotExists ($filename, $message= '')
 
static assertTrue ($condition, $message= '')
 
static assertNotTrue ($condition, $message= '')
 
static assertFalse ($condition, $message= '')
 
static assertNotFalse ($condition, $message= '')
 
static assertNotNull ($actual, $message= '')
 
static assertNull ($actual, $message= '')
 
static assertClassHasAttribute ($attributeName, $className, $message= '')
 
static assertClassNotHasAttribute ($attributeName, $className, $message= '')
 
static assertClassHasStaticAttribute ($attributeName, $className, $message= '')
 
static assertClassNotHasStaticAttribute ($attributeName, $className, $message= '')
 
static assertObjectHasAttribute ($attributeName, $object, $message= '')
 
static assertObjectNotHasAttribute ($attributeName, $object, $message= '')
 
static assertSame ($expected, $actual, $message= '')
 
static assertAttributeSame ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertNotSame ($expected, $actual, $message= '')
 
static assertAttributeNotSame ($expected, $actualAttributeName, $actualClassOrObject, $message= '')
 
static assertInstanceOf ($expected, $actual, $message= '')
 
static assertAttributeInstanceOf ($expected, $attributeName, $classOrObject, $message= '')
 
static assertNotInstanceOf ($expected, $actual, $message= '')
 
static assertAttributeNotInstanceOf ($expected, $attributeName, $classOrObject, $message= '')
 
static assertInternalType ($expected, $actual, $message= '')
 
static assertAttributeInternalType ($expected, $attributeName, $classOrObject, $message= '')
 
static assertNotInternalType ($expected, $actual, $message= '')
 
static assertAttributeNotInternalType ($expected, $attributeName, $classOrObject, $message= '')
 
static assertRegExp ($pattern, $string, $message= '')
 
static assertNotRegExp ($pattern, $string, $message= '')
 
static assertSameSize ($expected, $actual, $message= '')
 
static assertNotSameSize ($expected, $actual, $message= '')
 
static assertStringMatchesFormat ($format, $string, $message= '')
 
static assertStringNotMatchesFormat ($format, $string, $message= '')
 
static assertStringMatchesFormatFile ($formatFile, $string, $message= '')
 
static assertStringNotMatchesFormatFile ($formatFile, $string, $message= '')
 
static assertStringStartsWith ($prefix, $string, $message= '')
 
static assertStringStartsNotWith ($prefix, $string, $message= '')
 
static assertStringEndsWith ($suffix, $string, $message= '')
 
static assertStringEndsNotWith ($suffix, $string, $message= '')
 
static assertXmlFileEqualsXmlFile ($expectedFile, $actualFile, $message= '')
 
static assertXmlFileNotEqualsXmlFile ($expectedFile, $actualFile, $message= '')
 
static assertXmlStringEqualsXmlFile ($expectedFile, $actualXml, $message= '')
 
static assertXmlStringNotEqualsXmlFile ($expectedFile, $actualXml, $message= '')
 
static assertXmlStringEqualsXmlString ($expectedXml, $actualXml, $message= '')
 
static assertXmlStringNotEqualsXmlString ($expectedXml, $actualXml, $message= '')
 
static assertEqualXMLStructure (DOMElement $expectedElement, DOMElement $actualElement, $checkAttributes=false, $message= '')
 
static assertSelectCount ($selector, $count, $actual, $message= '', $isHtml=true)
 
static assertSelectRegExp ($selector, $pattern, $count, $actual, $message= '', $isHtml=true)
 
static assertSelectEquals ($selector, $content, $count, $actual, $message= '', $isHtml=true)
 
static assertTag ($matcher, $actual, $message= '', $isHtml=true)
 
static assertNotTag ($matcher, $actual, $message= '', $isHtml=true)
 
static assertThat ($value, PHPUnit_Framework_Constraint $constraint, $message= '')
 
static assertJson ($actualJson, $message= '')
 
static assertJsonStringEqualsJsonString ($expectedJson, $actualJson, $message= '')
 
static assertJsonStringNotEqualsJsonString ($expectedJson, $actualJson, $message= '')
 
static assertJsonStringEqualsJsonFile ($expectedFile, $actualJson, $message= '')
 
static assertJsonStringNotEqualsJsonFile ($expectedFile, $actualJson, $message= '')
 
static assertJsonFileNotEqualsJsonFile ($expectedFile, $actualFile, $message= '')
 
static assertJsonFileEqualsJsonFile ($expectedFile, $actualFile, $message= '')
 
static logicalAnd ()
 
static logicalOr ()
 
static logicalNot (PHPUnit_Framework_Constraint $constraint)
 
static logicalXor ()
 
static anything ()
 
static isTrue ()
 
static callback ($callback)
 
static isFalse ()
 
static isJson ()
 
static isNull ()
 
static attribute (PHPUnit_Framework_Constraint $constraint, $attributeName)
 
static contains ($value, $checkForObjectIdentity=true, $checkForNonObjectIdentity=false)
 
static containsOnly ($type)
 
static containsOnlyInstancesOf ($classname)
 
static arrayHasKey ($key)
 
static equalTo ($value, $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static attributeEqualTo ($attributeName, $value, $delta=0.0, $maxDepth=10, $canonicalize=false, $ignoreCase=false)
 
static isEmpty ()
 
static fileExists ()
 
static greaterThan ($value)
 
static greaterThanOrEqual ($value)
 
static classHasAttribute ($attributeName)
 
static classHasStaticAttribute ($attributeName)
 
static objectHasAttribute ($attributeName)
 
static identicalTo ($value)
 
static isInstanceOf ($className)
 
static isType ($type)
 
static lessThan ($value)
 
static lessThanOrEqual ($value)
 
static matchesRegularExpression ($pattern)
 
static matches ($string)
 
static stringStartsWith ($prefix)
 
static stringContains ($string, $case=true)
 
static stringEndsWith ($suffix)
 
static countOf ($count)
 
static fail ($message= '')
 
static readAttribute ($classOrObject, $attributeName)
 
static getStaticAttribute ($className, $attributeName)
 
static getObjectAttribute ($object, $attributeName)
 
static markTestIncomplete ($message= '')
 
static markTestSkipped ($message= '')
 
static getCount ()
 
static resetCount ()
 

Member Function Documentation

PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::generateFailureMessages ( LocalFile  $file)

Generate a list of test failures for a given sniffed file.

Parameters
\PHP_CodeSniffer\Files\LocalFile$fileThe file being tested.
Returns
array
Exceptions
\PHP_CodeSniffer\Exceptions\RuntimeException
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::getErrorList ( )
abstractprotected

Returns the lines where errors should occur.

The key of the array should represent the line number and the value should represent the number of errors that should occur on that line.

Returns
array<int, int>
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::getTestFiles (   $testFileBase)
protected

Get a list of all test files to check.

These will have the same base as the sniff name but different extensions. We ignore the .php file as it is the class.

Parameters
string$testFileBaseThe base path that the unit tests files will have.
Returns
string[]
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::getWarningList ( )
abstractprotected

Returns the lines where warnings should occur.

The key of the array should represent the line number and the value should represent the number of warnings that should occur on that line.

Returns
array<int, int>
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::setCliValues (   $filename,
  $config 
)

Get a list of CLI values to set before the file is tested.

Parameters
string$filenameThe name of the file being tested.
\PHP_CodeSniffer\Config$configThe config data for the run.
Returns
void
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::setUp ( )
protected

Sets up this unit test.

Returns
void
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::shouldSkipTest ( )
protected

Should this test be skipped for some reason.

Returns
boolean
PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest::testSniff ( )
final

Tests the extending classes Sniff class.

Returns
void
Exceptions
\PHPUnit\Framework\Exception

The documentation for this class was generated from the following file: