|
|
|
@@ -31,9 +31,9 @@ use AtolOnline\{
|
|
|
|
Exceptions\NegativeItemExciseException,
|
|
|
|
Exceptions\NegativeItemExciseException,
|
|
|
|
Exceptions\NegativeItemPriceException,
|
|
|
|
Exceptions\NegativeItemPriceException,
|
|
|
|
Exceptions\NegativeItemQuantityException,
|
|
|
|
Exceptions\NegativeItemQuantityException,
|
|
|
|
|
|
|
|
Exceptions\TooHighItemPriceException,
|
|
|
|
Exceptions\TooHighItemQuantityException,
|
|
|
|
Exceptions\TooHighItemQuantityException,
|
|
|
|
Exceptions\TooHighPriceException,
|
|
|
|
Exceptions\TooHighItemSumException,
|
|
|
|
Exceptions\TooHighSumException,
|
|
|
|
|
|
|
|
Exceptions\TooLongItemCodeException,
|
|
|
|
Exceptions\TooLongItemCodeException,
|
|
|
|
Exceptions\TooLongItemNameException,
|
|
|
|
Exceptions\TooLongItemNameException,
|
|
|
|
Exceptions\TooLongMeasurementUnitException,
|
|
|
|
Exceptions\TooLongMeasurementUnitException,
|
|
|
|
@@ -62,7 +62,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::getSum
|
|
|
|
* @covers \AtolOnline\Entities\Item::getSum
|
|
|
|
* @covers \AtolOnline\Entities\Item::jsonSerialize
|
|
|
|
* @covers \AtolOnline\Entities\Item::jsonSerialize
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -88,7 +88,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setName
|
|
|
|
* @covers \AtolOnline\Entities\Item::setName
|
|
|
|
* @covers \AtolOnline\Exceptions\TooLongItemNameException
|
|
|
|
* @covers \AtolOnline\Exceptions\TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -107,7 +107,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setName
|
|
|
|
* @covers \AtolOnline\Entities\Item::setName
|
|
|
|
* @covers \AtolOnline\Exceptions\EmptyItemNameException
|
|
|
|
* @covers \AtolOnline\Exceptions\EmptyItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -124,9 +124,9 @@ class ItemTest extends BasicTestCase
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @covers \AtolOnline\Entities\Item
|
|
|
|
* @covers \AtolOnline\Entities\Item
|
|
|
|
* @covers \AtolOnline\Entities\Item::setPrice
|
|
|
|
* @covers \AtolOnline\Entities\Item::setPrice
|
|
|
|
* @covers \AtolOnline\Exceptions\TooHighPriceException
|
|
|
|
* @covers \AtolOnline\Exceptions\TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -134,7 +134,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function testTooHighPriceException(): void
|
|
|
|
public function testTooHighPriceException(): void
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->expectException(TooHighPriceException::class);
|
|
|
|
$this->expectException(TooHighItemPriceException::class);
|
|
|
|
new Item('test', Constraints::MAX_COUNT_ITEM_PRICE + 0.1, 3);
|
|
|
|
new Item('test', Constraints::MAX_COUNT_ITEM_PRICE + 0.1, 3);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -143,12 +143,12 @@ class ItemTest extends BasicTestCase
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @covers \AtolOnline\Entities\Item
|
|
|
|
* @covers \AtolOnline\Entities\Item
|
|
|
|
* @covers \AtolOnline\Entities\Item::setPrice
|
|
|
|
* @covers \AtolOnline\Entities\Item::setPrice
|
|
|
|
* @covers \AtolOnline\Exceptions\TooHighSumException
|
|
|
|
* @covers \AtolOnline\Exceptions\TooHighItemSumException
|
|
|
|
* @throws TooHighSumException
|
|
|
|
* @throws TooHighItemSumException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public function testTooHighSumException(): void
|
|
|
|
public function testTooHighSumException(): void
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$this->expectException(TooHighSumException::class);
|
|
|
|
$this->expectException(TooHighItemSumException::class);
|
|
|
|
(new Item('test', Constraints::MAX_COUNT_ITEM_PRICE, Constraints::MAX_COUNT_ITEM_QUANTITY))->getSum();
|
|
|
|
(new Item('test', Constraints::MAX_COUNT_ITEM_PRICE, Constraints::MAX_COUNT_ITEM_QUANTITY))->getSum();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -159,7 +159,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setPrice
|
|
|
|
* @covers \AtolOnline\Entities\Item::setPrice
|
|
|
|
* @covers \AtolOnline\Exceptions\NegativeItemPriceException
|
|
|
|
* @covers \AtolOnline\Exceptions\NegativeItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -178,7 +178,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setQuantity
|
|
|
|
* @covers \AtolOnline\Entities\Item::setQuantity
|
|
|
|
* @covers \AtolOnline\Exceptions\TooHighItemQuantityException
|
|
|
|
* @covers \AtolOnline\Exceptions\TooHighItemQuantityException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -197,7 +197,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setQuantity
|
|
|
|
* @covers \AtolOnline\Entities\Item::setQuantity
|
|
|
|
* @covers \AtolOnline\Exceptions\NegativeItemQuantityException
|
|
|
|
* @covers \AtolOnline\Exceptions\NegativeItemQuantityException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -217,7 +217,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::getMeasurementUnit
|
|
|
|
* @covers \AtolOnline\Entities\Item::getMeasurementUnit
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongMeasurementUnitException
|
|
|
|
* @throws TooLongMeasurementUnitException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -236,7 +236,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongMeasurementUnitException
|
|
|
|
* @throws TooLongMeasurementUnitException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -260,7 +260,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -294,7 +294,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -314,7 +314,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -334,7 +334,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -365,7 +365,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -399,7 +399,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
* @throws InvalidEnumValueException
|
|
|
|
@@ -422,7 +422,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidPhoneException
|
|
|
|
* @throws InvalidPhoneException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongPayingAgentOperationException
|
|
|
|
* @throws TooLongPayingAgentOperationException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -450,7 +450,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidPhoneException
|
|
|
|
* @throws InvalidPhoneException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -485,7 +485,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongUserdataException
|
|
|
|
* @throws TooLongUserdataException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -514,7 +514,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::getUserData
|
|
|
|
* @covers \AtolOnline\Entities\Item::getUserData
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
@@ -534,7 +534,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongUserdataException
|
|
|
|
* @throws TooLongUserdataException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -555,7 +555,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidOKSMCodeException
|
|
|
|
* @throws InvalidOKSMCodeException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -582,7 +582,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws InvalidOKSMCodeException
|
|
|
|
* @throws InvalidOKSMCodeException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@@ -601,7 +601,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws InvalidDeclarationNumberException
|
|
|
|
* @throws InvalidDeclarationNumberException
|
|
|
|
@@ -629,7 +629,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws InvalidDeclarationNumberException
|
|
|
|
* @throws InvalidDeclarationNumberException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -649,7 +649,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws InvalidDeclarationNumberException
|
|
|
|
* @throws InvalidDeclarationNumberException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -669,7 +669,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::getSum
|
|
|
|
* @covers \AtolOnline\Entities\Item::getSum
|
|
|
|
* @covers \AtolOnline\Entities\Item::jsonSerialize
|
|
|
|
* @covers \AtolOnline\Entities\Item::jsonSerialize
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -696,7 +696,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setExcise
|
|
|
|
* @covers \AtolOnline\Entities\Item::setExcise
|
|
|
|
* @covers \AtolOnline\Exceptions\NegativeItemExciseException
|
|
|
|
* @covers \AtolOnline\Exceptions\NegativeItemExciseException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
@@ -719,7 +719,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooLongItemCodeException
|
|
|
|
* @throws TooLongItemCodeException
|
|
|
|
@@ -756,7 +756,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws NegativeItemQuantityException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooLongItemCodeException
|
|
|
|
* @throws TooLongItemCodeException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
@@ -774,7 +774,7 @@ class ItemTest extends BasicTestCase
|
|
|
|
* @covers \AtolOnline\Entities\Item::setCode
|
|
|
|
* @covers \AtolOnline\Entities\Item::setCode
|
|
|
|
* @covers \AtolOnline\Exceptions\TooLongItemCodeException
|
|
|
|
* @covers \AtolOnline\Exceptions\TooLongItemCodeException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooLongItemNameException
|
|
|
|
* @throws TooHighPriceException
|
|
|
|
* @throws TooHighItemPriceException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws TooManyException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws NegativeItemPriceException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
* @throws EmptyItemNameException
|
|
|
|
|