Skip to content

Instantly share code, notes, and snippets.

@iannsp
Created May 10, 2014 23:41
Show Gist options
  • Save iannsp/bf874906eff83927c685 to your computer and use it in GitHub Desktop.
Save iannsp/bf874906eff83927c685 to your computer and use it in GitHub Desktop.
Tests para uma collection de Items a ser utilizada em um carrinho de compras
<?php
namespace Ecomz\Cart;
class ItemCollectionTest extends \PHPUnit_Framework_TestCase{
public function testCannotAcceptNonItemItems()
{
}
public function testCannotAcceptDuplicatedItems()
{
}
public function testIfProductExistInSomeItemNeedCanChooseReplaceItAndAggregateItemValues()
{
}
public function testIfProductExistInSomeItemNeedCanChooseMaintainItAndAggregateItemValues()
{
}
public function testCanGetATotalValue()
{
}
public function testCountItems()
{
}
public function testCanSaveIt()
{
}
public function testRemoveAnItem()
{
}
public function testKnowIfAProductIsOnItemCollection()
{
}
public function testCanLoadItFromSaved()
{
}
public function testCheckForUpdateItems()
{
}
public function testCanUpdateItems()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment