Source of file CurrencyEventTest.php
Size: 1,257 Bytes - Last Modified: 2021-12-24T06:51:34+00:00
/var/www/docs.ssmods.com/process/src/tests/Currency/Event/CurrencyEventTest.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 | <?php namespace Heystack\Ecommerce\Currency\Event; use Heystack\Ecommerce\Currency\Interfaces\CurrencyInterface; /** * Generated by PHPUnit_SkeletonGenerator 1.2.0 on 2013-04-25 at 16:57:50. */ class CurrencyEventTest extends \PHPUnit_Framework_TestCase { /** * @var CurrencyEvent */ protected $currencyEvent; /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $nzCurrency = $this->getMock('Heystack\Ecommerce\Currency\Interfaces\CurrencyInterface'); $this->currencyEvent = new CurrencyEvent($nzCurrency); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { $this->currencyEvent = null; } /** * @covers Heystack\Ecommerce\Currency\Event\CurrencyEvent::getCurrency * @covers Heystack\Ecommerce\Currency\Event\CurrencyEvent::__construct */ public function testGetCurrency() { $nzCurrency = $this->currencyEvent->getCurrency(); $this->assertTrue($nzCurrency instanceof CurrencyInterface); } } |