@@ -49,23 +49,23 @@ public function testAwaitOneInterrupted()
4949 /**
5050 * @expectedException UnderflowException
5151 */
52- public function testAwaitRaceEmpty ()
52+ public function testAwaitAnyEmpty ()
5353 {
54- $ this ->block ->awaitRace (array ());
54+ $ this ->block ->awaitAny (array ());
5555 }
5656
57- public function testAwaitRaceFirstResolved ()
57+ public function testAwaitAnyFirstResolved ()
5858 {
5959 $ all = array (
6060 $ this ->createPromiseRejected (1 ),
6161 $ this ->createPromiseResolved (2 , 0.01 ),
6262 $ this ->createPromiseResolved (3 , 0.02 )
6363 );
6464
65- $ this ->assertEquals (2 , $ this ->block ->awaitRace ($ all ));
65+ $ this ->assertEquals (2 , $ this ->block ->awaitAny ($ all ));
6666 }
6767
68- public function testAwaitRaceFirstResolvedConcurrently ()
68+ public function testAwaitAnyFirstResolvedConcurrently ()
6969 {
7070 $ d1 = new Deferred ();
7171 $ d2 = new Deferred ();
@@ -83,26 +83,26 @@ public function testAwaitRaceFirstResolvedConcurrently()
8383 $ d3 ->promise ()
8484 );
8585
86- $ this ->assertEquals (2 , $ this ->block ->awaitRace ($ all ));
86+ $ this ->assertEquals (2 , $ this ->block ->awaitAny ($ all ));
8787 }
8888
89- public function testAwaitRaceAllRejected ()
89+ public function testAwaitAnyAllRejected ()
9090 {
9191 $ all = array (
9292 $ this ->createPromiseRejected (1 ),
9393 $ this ->createPromiseRejected (2 )
9494 );
9595
9696 $ this ->setExpectedException ('UnderflowException ' );
97- $ this ->block ->awaitRace ($ all );
97+ $ this ->block ->awaitAny ($ all );
9898 }
9999
100- public function testAwaitRaceInterrupted ()
100+ public function testAwaitAnyInterrupted ()
101101 {
102102 $ promise = $ this ->createPromiseResolved (2 , 0.02 );
103103 $ this ->createTimerInterrupt (0.01 );
104104
105- $ this ->assertEquals (2 , $ this ->block ->awaitRace (array ($ promise )));
105+ $ this ->assertEquals (2 , $ this ->block ->awaitAny (array ($ promise )));
106106 }
107107
108108 public function testAwaitAllEmpty ()
0 commit comments