/** * @test * @expectedException Prooph\EventStore\Exception\StreamNotFoundException */ public function it_throws_exception_when_trying_to_append_on_non_existing_stream() { $streamName = $this->prophesize(StreamName::class); $streamName->toString()->willReturn('test'); $this->adapter->appendTo($streamName->reveal(), []); }