Updated test class

This commit is contained in:
Rob Gloudemans
2014-02-12 20:07:16 +01:00
parent 7e0ced96bf
commit f65e036c66

View File

@@ -10,16 +10,15 @@ require_once 'SessionMock.php';
class CartTest extends PHPUnit_Framework_TestCase { class CartTest extends PHPUnit_Framework_TestCase {
protected $session;
protected $events; protected $events;
protected $cart; protected $cart;
public function setUp() public function setUp()
{ {
$this->session = new SessionMock; $session= new SessionMock;
$this->events = m::mock('Illuminate\Events\Dispatcher'); $this->events = m::mock('Illuminate\Events\Dispatcher');
$this->cart = new Cart($this->session, $this->events); $this->cart = new Cart($session, $this->events);
} }
public function tearDown() public function tearDown()