Beispiel #1
0
 public function testPromiseTest__extractIdFromException()
 {
     $this->object = new Client($this->store);
     $exc1 = new \Exception('Promise: promise__1119864461_889811__579c843dd93ad1_08516192');
     $exc2 = new \Exception('promise__2229864461_889811__579c843dd93ad1_08516192  AND promise__3339864461_889811__579c843dd93ad1_08516192', 0, $exc1);
     $exc3 = new \Exception('promise__4449864461_889811__579c843dd93ad1_08516192 of the end', 0, $exc2);
     $this->assertEquals(['promise__4449864461_889811__579c843dd93ad1_08516192', 'promise__3339864461_889811__579c843dd93ad1_08516192', 'promise__2229864461_889811__579c843dd93ad1_08516192', 'promise__1119864461_889811__579c843dd93ad1_08516192'], $this->object->extractId($exc3));
 }