PHP Class Sonata\Tests\Component\Currency\CurrencyDetectorTest

Author: Hugo Briand ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: sonata-project/ecommerce

Protected Properties

Property Type Description
$currency Sonata\Component\Currency\CurrencyInterface
$object Sonata\Component\Currency\CurrencyDetector

Public Methods

Method Description
testConstruct ( )
testGetCurrency ( )

Protected Methods

Method Description
setUp ( ) Sets up the fixture, for example, opens a network connection.
tearDown ( ) Tears down the fixture, for example, closes a network connection.

Method Details

setUp() protected method

This method is called before a test is executed.
protected setUp ( )

tearDown() protected method

This method is called after a test is executed.
protected tearDown ( )

testConstruct() public method

public testConstruct ( )

testGetCurrency() public method

public testGetCurrency ( )

Property Details

$currency protected property

protected CurrencyInterface,Sonata\Component\Currency $currency
return Sonata\Component\Currency\CurrencyInterface

$object protected property

protected CurrencyDetector,Sonata\Component\Currency $object
return Sonata\Component\Currency\CurrencyDetector