/**
  * @test
  */
 public function get_a_complete_stock_movement()
 {
     $simulator = new Simulator();
     $quotes = [];
     for ($i = 0; $i < 10; $i++) {
         $quotes[] = $simulator->close;
         $simulator->run();
     }
     $this->assertCount(10, $quotes);
 }
Example #2
0
 /**
  * Run next simulation
  * 
  * @return array
  */
 public function next()
 {
     return $this->simulator->run();
 }