Skip to content

Introduce EventStore#transactional(callable $callable) API - #182

Merged
prolic merged 7 commits into
prooph:developfrom
malukenho:enhancement/transaction
Sep 14, 2016
Merged

Introduce EventStore#transactional(callable $callable) API#182
prolic merged 7 commits into
prooph:developfrom
malukenho:enhancement/transaction

Conversation

@malukenho

@malukenho malukenho commented Sep 8, 2016

Copy link
Copy Markdown
Contributor

/cc @prolic

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling c269e7f on malukenho:enhancement/transaction into e8d18de on prooph:master.

Comment thread src/EventStore.php
* @param callable $callable
*
* @return mixed
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename method to transactional

Jefersson Nathan added 3 commits September 9, 2016 10:01
Signed-off-by: Jefersson Nathan <admin@phpse.net>
Signed-off-by: Jefersson Nathan <admin@phpse.net>
Signed-off-by: Jefersson Nathan <admin@phpse.net>
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.6%) to 99.432% when pulling b8e6112 on malukenho:enhancement/transaction into e8d18de on prooph:master.

Comment thread src/EventStore.php

throw $e;
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test for return true missing

@prolic

prolic commented Sep 9, 2016

Copy link
Copy Markdown
Member

test for exception and rollback missing

@prolic
prolic changed the base branch from master to develop September 9, 2016 14:13
@prolic prolic self-assigned this Sep 9, 2016
@prolic prolic changed the title Introduce EventStore#transaction(callable $callable) API Introduce EventStore#transactional(callable $callable) API Sep 9, 2016
Jefersson Nathan added 2 commits September 13, 2016 17:44
Signed-off-by: Jefersson Nathan <admin@phpse.net>
Signed-off-by: Jefersson Nathan <admin@phpse.net>
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling aba1aed on malukenho:enhancement/transaction into e8d18de on prooph:develop.

Comment thread tests/Mock/AdapterCanHandlerMock.php Outdated
* @package ProophTest\EventStore
* @author Jefersson Nathan <malukenho@phpse.net>
*/
final class AdapterCanHandlerMock extends InMemoryAdapter implements CanHandleTransaction

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest renaming that class to TransactionalInMemoryAdapterMock, so the naming is a little more clear.

@prolic suggestion

Signed-off-by: Jefersson Nathan <admin@phpse.net>
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 6013fbd on malukenho:enhancement/transaction into e8d18de on prooph:develop.

@prolic
prolic merged commit edf0f6f into prooph:develop Sep 14, 2016
@malukenho
malukenho deleted the enhancement/transaction branch September 14, 2016 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants