PHP Class Snc\RedisBundle\Tests\CommandTestCase

Author: Sebastian Göttschkes ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: snc/SncRedisBundle Class Usage Examples

Protected Properties

Property Type Description
$application Symfony\Bundle\FrameworkBundle\Console\Application
$container Symfony\Component\DependencyInjection\ContainerInterface
$phpredisClient Snc\RedisBundle\Client\Phpredis\Client
$predisClient Predis\Client

Public Methods

Method Description
setUp ( ) SetUp called before each tests, setting up the environment (application, globally used mocks)

Protected Methods

Method Description
getCommand ( ) : mixed Method used by the implementation of the command test to return the actual command object
registerPhpredisClient ( )
registerPredisClient ( )

Method Details

getCommand() abstract protected method

Method used by the implementation of the command test to return the actual command object
abstract protected getCommand ( ) : mixed
return mixed The command to be tested

registerPhpredisClient() protected method

protected registerPhpredisClient ( )

registerPredisClient() protected method

protected registerPredisClient ( )

setUp() public method

SetUp called before each tests, setting up the environment (application, globally used mocks)
public setUp ( )

Property Details

$application protected property

protected Application,Symfony\Bundle\FrameworkBundle\Console $application
return Symfony\Bundle\FrameworkBundle\Console\Application

$container protected property

protected ContainerInterface,Symfony\Component\DependencyInjection $container
return Symfony\Component\DependencyInjection\ContainerInterface

$phpredisClient protected property

protected Client,Snc\RedisBundle\Client\Phpredis $phpredisClient
return Snc\RedisBundle\Client\Phpredis\Client

$predisClient protected property

protected Client,Predis $predisClient
return Predis\Client