芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/storage/vendor/react/promise/tests/FunctionRejectTest.php
createCallableMock(); $mock ->expects($this->once()) ->method('__invoke') ->with($this->identicalTo($expected)); reject($expected) ->then( $this->expectCallableNever(), $mock ); } /** @test */ public function shouldRejectAFulfilledPromise() { $expected = 123; $resolved = new FulfilledPromise($expected); $mock = $this->createCallableMock(); $mock ->expects($this->once()) ->method('__invoke') ->with($this->identicalTo($expected)); reject($resolved) ->then( $this->expectCallableNever(), $mock ); } /** @test */ public function shouldRejectARejectedPromise() { $expected = 123; $resolved = new RejectedPromise($expected); $mock = $this->createCallableMock(); $mock ->expects($this->once()) ->method('__invoke') ->with($this->identicalTo($expected)); reject($resolved) ->then( $this->expectCallableNever(), $mock ); } }