yield 'test calculation with 0 reference unit' =>
[ new ReferencePriceDefinition(1, 0, 'test'
),
100,
null,
];
yield 'test calculation with all requirements fulfilled' =>
[ new ReferencePriceDefinition(1, 1, 'test'
),
100,
new ReferencePrice(100, 1, 1, 'test'
),
];
yield 'test calculation with smaller reference unit' =>
[ new ReferencePriceDefinition(0.7, 1, 'test'
),
7,
new ReferencePrice(10, 0.7, 1, 'test'
),
];
yield 'test calculation with smaller reference unit and cents' =>
[ new ReferencePriceDefinition(0.7, 1, 'test'
),
123.3,