Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Psecio
Parse
Rule
RuleTestCase
parseSampleProvider
Psecio\Parse\Rule\RuleTestCase::parseSampleProvider PHP Method
RuleTestCase Class Documentation
Show file
Open project: psecio/parse
parseSampleProvider()
public
method
This method provides a list of samples and expected results that this unit test should test against. The structure should be: [ ['valid php code',
], [ ... ], ... ] Note that the actual test method prefixes the sample code with '
public
parseSampleProvider
( ) :
array
return
array
Lists of samples to test against
public function parseSampleProvider() { return []; }
RuleTestCase
assertParseTest
assertParseTestFalse
assertParseTestTrue
buildTest
formatCodeForMessage
parseSampleProvider
scan
setUp
testDescription
testLongDescription
testParseSample