public function testUpdateStatement()
 {
     $database = new Database($this->getCredentials());
     $database->statement("UPDATE simple_table SET name = :name WHERE id = :id", [':name' => 'update test', ':id' => 2])->then(function ($result) {
         // Expect a true result.
         $this->assertTrue($result);
     })->done();
     $database->shuttingDown = true;
     $database->loop->run();
 }
 public function loopTick(TimerInterface $timer)
 {
     // Expect tests not to take too long.
     $this->loops++;
     if ($this->loops > 200) {
         throw new \Exception('time out failure');
     }
     parent::loopTick($timer);
 }