@@ -54,7 +54,7 @@ final public function runAsyncTest(...$args)
5454 if (!$ this ->setUpInvoked ) {
5555 $ this ->fail (\sprintf (
5656 '%s::setUp() overrides %s::setUp() without calling the parent method ' ,
57- \str_replace ("\0" , '@ ' , \get_class ( $ this ) ), // replace NUL-byte in anonymous class name
57+ \str_replace ("\0" , '@ ' , static ::class ), // replace NUL-byte in anonymous class name
5858 self ::class
5959 ));
6060 }
@@ -129,7 +129,7 @@ private function runAsyncTestCycle(array $args): \Generator
129129 } catch (\Throwable $ exception ) {
130130 throw new \Error (\sprintf (
131131 '%s::setUpAsync() failed ' ,
132- \str_replace ("\0" , '@ ' , \get_class ( $ this ) ) // replace NUL-byte in anonymous class name
132+ \str_replace ("\0" , '@ ' , static ::class ) // replace NUL-byte in anonymous class name
133133 ), 0 , $ exception );
134134 }
135135
@@ -144,7 +144,7 @@ private function runAsyncTestCycle(array $args): \Generator
144144 } catch (\Throwable $ exception ) {
145145 throw new \Error (\sprintf (
146146 '%s::tearDownAsync() failed ' ,
147- \str_replace ("\0" , '@ ' , \get_class ( $ this ) ) // replace NUL-byte in anonymous class name
147+ \str_replace ("\0" , '@ ' , static ::class ) // replace NUL-byte in anonymous class name
148148 ), 0 , $ exception );
149149 } finally {
150150 if (isset ($ testException )) {
@@ -256,11 +256,6 @@ final protected function createCallback(int $invocationCount, ?callable $returnC
256256
257257 /**
258258 * Specialized Amp\call that stores the generator if present for debugging purposes.
259- *
260- * @param callable $callback
261- * @param mixed ...$args
262- *
263- * @return Promise
264259 */
265260 private function call (callable $ callback , ...$ args ): Promise
266261 {
0 commit comments