PHP Class Tests\MakeMigrationJsonTest

Inheritance: extends PHPUnit_Framework_TestCase
Mostra file Open project: mojopollo/laravel-json-schema

Protected Properties

Property Type Description
$jsonFilePath string The path to the json file
$makeMigrationJson Mojopollo\Schema\MakeMigrationJson MakeMigrationJson instance

Public Methods

Method Description
setUp ( ) This will run at the beginning of every test method
tearDown ( ) This will run at the end of every test method
testIsValidColumnType ( ) : void Test isValidColumnType()
testJsonFileToArray ( ) : array Test jsonFileToArray()
testParseSchema ( array $jsonArray ) : void Test parseSchema()
testParseSchemaWithOnlyParameter ( ) : void Test parseSchema() with $only parameter
testSetMigrationName ( ) : void Test setMigrationName()
testValidateSchema ( ) : void Test validateSchema()

Method Details

setUp() public method

This will run at the beginning of every test method
public setUp ( )

tearDown() public method

This will run at the end of every test method
public tearDown ( )

testIsValidColumnType() public method

Test isValidColumnType()
public testIsValidColumnType ( ) : void
return void

testJsonFileToArray() public method

Test jsonFileToArray()
public testJsonFileToArray ( ) : array
return array $jsonArray

testParseSchema() public method

Test parseSchema()
public testParseSchema ( array $jsonArray ) : void
$jsonArray array
return void

testParseSchemaWithOnlyParameter() public method

Test parseSchema() with $only parameter

testSetMigrationName() public method

Test setMigrationName()
public testSetMigrationName ( ) : void
return void

testValidateSchema() public method

Test validateSchema()
public testValidateSchema ( ) : void
return void

Property Details

$jsonFilePath protected_oe property

The path to the json file
protected string $jsonFilePath
return string

$makeMigrationJson protected_oe property

MakeMigrationJson instance
protected MakeMigrationJson,Mojopollo\Schema $makeMigrationJson
return Mojopollo\Schema\MakeMigrationJson