Skip to content

Instantly share code, notes, and snippets.

@cakper
Created November 24, 2011 18:45
Show Gist options
  • Save cakper/1391994 to your computer and use it in GitHub Desktop.
Save cakper/1391994 to your computer and use it in GitHub Desktop.
Bills test
<?php
public function getBills()
{
return array(
array(
120,
array(
array(120, 10, 25, false, 85),
array(0, 10, 25, false, -35),
array(0, 0, 25, false, -25),
array(0, 0, 25, false, -25))),
array(
100,
array(
array(100, 0, 30, false, 70),
array(0, 10, 30, false, -40),
array(0, 0, 30, false, -30))),
array(
100,
array(
array(100, 40, 0, true, 60),
array(0, 10, 25, false, -35),
array(0, 0, 25, false, -25))),
array(
250,
array(
array(75, 33, 0, true, 42),
array(125, 40, 44.25, false, 40.75),
array(50, 0, 44.25, false, 5.75),
array(0, 0, 44.25, false, -44.25),
array(0, 0, 44.25, false, -44.25))),
array(
25,
array(
array(25, 0, 5, false, 20),
array(0, 10, 0, true, -10),
array(0, 0, 5, false, -5),
array(0, 0, 5, false, -5))),
array(
150,
array(
array(50, 0, 25, false, 25),
array(40, 0, 25, false, 15),
array(20, 0, 25, false, -5),
array(20, 0, 25, false, -5),
array(10, 0, 25, false, -15),
array(10, 0, 25, false, -15))),
array(
1523,
array(
array(1000, 15, 377, false, 608),
array(3, 0, 377, false, -374),
array(500, 0, 377, false, 123),
array(20, 0, 377, false, -357))),
array(
34,
array(
array(20, 0, 8, false, 12),
array(14, 0, 12, false, 2),
array(0, 0, 14, false, -14))),
array(
620,
array(
array(600, 35, 180.33, false, 384.67),
array(20, 12, 180.33, false, -172.33),
array(0, 32, 180.34, false, -212.34))),
array(
600,
array(
array(500, 50, 0, true, 450),
array(100, 50, 0, true, 50),
array(0, 0, 250, false, -250),
array(0, 0, 250, false, -250))),
array(
70,
array(
array(70, 0, 0, true, 70),
array(0, 10, 20, false, -30),
array(0, 0, 20, false, -20),
array(0, 0, 20, false, -20))),
array(
313.52,
array(
array(313.52, 0, 96.815, false, 216.705),
array(0, 10, 0, true, -10),
array(0, 89.99, 96.815, false, -186.805))),
array(
568.34,
array(
array(0, 19.9, 0, true, -19.9),
array(568.34, 0, 0, true, 568.34),
array(0, 0, 189.446, false, -189.446))),
array(
450,
array(
array(0, 0, 189.447, false, -189.447),
array(0, 0, 189.447, false, -189.447),
array(912, 0, 0, true, 912))),
array(
912,
array(
array(0, 15, 292.5, false, -307.5),
array(0, 312, 0, true, -312),
array(0, 0, 292.5, false, -292.5))),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment