PHP Class GrumPHPTest\Linter\Json\JsonLinterTest

Inheritance: extends PHPUnit_Framework_TestCas\PHPUnit_Framework_TestCase
Show file Open project: phpro/grumphp

Protected Properties

Property Type Description
$linter GrumPHP\Linter\Json\JsonLinter

Public Methods

Method Description
it_should_be_able_to_detect_duplicate_keys ( )
it_should_validate_json_for_syntax_errors ( $fixture, $errors )
provideJsonValidation ( ) : array

Protected Methods

Method Description
setUp ( )

Private Methods

Method Description
getFixture ( string $fixture ) : SplFileInfo
validateFixture ( string $fixture, integer $errors )

Method Details

it_should_be_able_to_detect_duplicate_keys() public method

it_should_validate_json_for_syntax_errors() public method

public it_should_validate_json_for_syntax_errors ( $fixture, $errors )

provideJsonValidation() public method

public provideJsonValidation ( ) : array
return array

setUp() protected method

protected setUp ( )

Property Details

$linter protected property

protected JsonLinter,GrumPHP\Linter\Json $linter
return GrumPHP\Linter\Json\JsonLinter