TestApplication

Class TestApplication.

author

Donii Sergii doniysa@gmail.com

package

Default

Methods

TestApplication constructor.

__construct(array $seeds = array(), null|\sonrac\FCoverage\OnceRunMigration $migration = null) 
author

Donii Sergii doniysa@gmail.com

Arguments

$seeds

array

Seeds list.

$migration

null|\sonrac\FCoverage\OnceRunMigration

Migration instance

Get application instance.

createApplication() : string|\Silex\Application
abstract
author

Donii Sergii doniysa@gmail.com

Response

string|\Silex\Application

Get silex application.

getApplication() : \Silex\Application
author

Donii Sergii doniysa@gmail.com

Response

\Silex\Application

getInstance

getInstance(array $seeds = array(), null|\sonrac\FCoverage\OnceRunMigration $migration = null) : \sonrac\FCoverage\TestApplication
static
author

Donii Sergii doniysa@gmail.com

Arguments

$seeds

array

Response

\sonrac\FCoverage\TestApplication

Get migration instance.

getMigration() : \sonrac\FCoverage\OnceRunMigration

Check allow run migration.

isRunMigration() : boolean
author

Donii Sergii doniysa@gmail.com

Response

boolean

Get new application instance.

newInstance(array $seeds = array(), null $migration = null) : \sonrac\FCoverage\TestApplication
static
author

Donii Sergii doniysa@gmail.com

Arguments

$seeds

array

$migration

null

Response

\sonrac\FCoverage\TestApplication

Rollback migrations.

rollbackMigrations() 
author

Donii Sergii doniysa@gmail.com

Throws
\Exception

Setup migrations.

runMigration() 
author

Donii Sergii doniysa@gmail.com

Throws
\Exception

Set application instance.

setApplication(string $app) : \sonrac\FCoverage\TestApplication
author

Donii Sergii doniysa@gmail.com

Arguments

$app

string

Response

\sonrac\FCoverage\TestApplication

Set application instance.

setInstance(\sonrac\FCoverage\TestApplication $app) : \sonrac\FCoverage\TestApplication

Set migration instance.

setMigration(\sonrac\FCoverage\OnceRunMigration $migration) : \sonrac\FCoverage\TestApplication

Set allow/deny run migration.

setRunMigration(boolean $runMigration) : \sonrac\FCoverage\TestApplication
author

Donii Sergii doniysa@gmail.com

Arguments

$runMigration

boolean

Response

\sonrac\FCoverage\TestApplication

Setup migrations.

setUpMigration() 
abstract
author

Donii Sergii doniysa@gmail.com

Properties

Application singleton instance.

instance : null|\sonrac\FCoverage\TestApplication
static
var
author

Donii Sergii doniysa@gmail.com

Type(s)

null|\sonrac\FCoverage\TestApplication

Application instance.

app : \Silex\Application
var
author

Donii Sergii doniysa@gmail.com

Type(s)

\Silex\Application

Migration instance.

migration : \sonrac\FCoverage\OnceRunMigration
var
author

Donii Sergii doniysa@gmail.com

Type(s)

\sonrac\FCoverage\OnceRunMigration

Allow/deny run migration.

runMigration : boolean
var
author

Donii Sergii doniysa@gmail.com

Type(s)

boolean