/** * Set up test environment. */ public function setUp() { parent::setUp(); $this->gateway = new ExampleOffsiteGateway($this->dispatcher); $this->customer = new Customer('John Doe', '*****@*****.**'); $this->timestamp = new DateTimeValue('2015-10-15'); $this->order = new Order($this->customer, '2015-01', $this->timestamp, 'USD', 1200, [new OrderItem('Expensive product', 1, 1000), new OrderItem('Not so expensive product', 2, 100)]); $this->subscription = new Subscription($this->customer, '2015-01', $this->timestamp, SubscriptionInterface::MONTHLY, 'USD', 25, [new OrderItem('Monthly SaaS cost', 1, 25)]); }
/** * Set up test environment. */ public function setUp() { parent::setUp(); $this->customer = new Customer('John Doe', '*****@*****.**'); $this->timestamp = new DateTimeValue('2015-10-15'); }
/** * Set up test environment. */ public function setUp() { parent::setUp(); $this->slim_app = new App(); $this->model_router = new Router($this->slim_app); }