PHP Class Spec\Dumplie\SharedKernel\Domain\Money\PriceSpec

Inheritance: extends PhpSpec\ObjectBehavior
Datei anzeigen Open project: dumplie/dumplie

Public Methods

Method Description
it_can_be_created_from_integer ( )
it_can_be_multiplied ( )
it_has_immutable_currency ( )
it_is_converted_to_float ( )
it_knows_when_other_price_has_same_currency ( )
it_throw_exception_when_currency_is_not_known ( )
it_throws_exception_when_adding_to_price_with_a_different_currency ( )
it_throws_exception_when_adding_to_price_with_a_different_precisions ( )
it_throws_exception_when_precision_is_negaive ( )
it_throws_exception_when_value_is_negative ( )

Method Details

it_can_be_created_from_integer() public method

it_can_be_multiplied() public method

it_has_immutable_currency() public method

it_is_converted_to_float() public method

it_knows_when_other_price_has_same_currency() public method

it_throw_exception_when_currency_is_not_known() public method

it_throws_exception_when_adding_to_price_with_a_different_currency() public method

it_throws_exception_when_adding_to_price_with_a_different_precisions() public method

it_throws_exception_when_precision_is_negaive() public method

it_throws_exception_when_value_is_negative() public method