Skip to content

Commit

Permalink
php cs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Jul 8, 2019
1 parent 244a3d9 commit a5fda5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ before_script:
- if php --ri xdebug >/dev/null; then phpenv config-rm xdebug.ini; fi
- composer self-update
- composer update --prefer-dist $DEPENDENCIES
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then composer require prooph/php-cs-fixer-config ^0.3; fi

script:
- if [[ $TEST_COVERAGE == 'true' ]]; then php -dzend_extension=xdebug.so ./vendor/bin/phpunit --exclude-group=ignore --coverage-text --coverage-clover ./build/logs/clover.xml; else ./vendor/bin/phpunit --exclude-group=ignore; fi
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"phpunit/phpunit": "^8.2.2",
"doctrine/instantiator": "^1.1",
"sebastian/object-enumerator": "^3.0.3",
"php-coveralls/php-coveralls": "^2.1"
"php-coveralls/php-coveralls": "^2.1",
"prooph/php-cs-fixer-config": "^0.3"
},
"autoload": {
"psr-4": {
Expand Down
10 changes: 5 additions & 5 deletions tests/Security/overriden_system_stream_security.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

/**
* This file is part of the prooph/event-store-client.
* This file is part of `prooph/event-store-client`.
* (c) 2018-2019 Alexander Miertsch <kontakt@codeliner.ws>
* (c) 2018-2019 Sascha-Oliver Prolic <saschaprolic@googlemail.com>
*
Expand Down Expand Up @@ -58,7 +58,7 @@ public function operations_on_system_stream_succeed_for_authorized_user(): void
$transId = (yield $this->transStart($stream, 'adm', 'admpa$$'))->transactionId();
$trans = $this->connection->continueTransaction($transId, new UserCredentials('user1', 'pa$$1'));

assert($trans instanceof EventStoreTransaction);
\assert($trans instanceof EventStoreTransaction);
yield $trans->writeAsync();
yield $trans->commitAsync();

Expand Down Expand Up @@ -100,7 +100,7 @@ public function operations_on_system_stream_fail_for_not_authorized_user(): void
$transId = (yield $this->transStart($stream, 'adm', 'admpa$$'))->transactionId();
$trans = $this->connection->continueTransaction($transId, new UserCredentials('user2', 'pa$$2'));

assert($trans instanceof EventStoreTransaction);
\assert($trans instanceof EventStoreTransaction);
yield $trans->writeAsync();
yield $this->expectExceptionFromCallback(AccessDenied::class, function () use ($trans) {
return $trans->commitAsync();
Expand Down Expand Up @@ -152,7 +152,7 @@ public function operations_on_system_stream_fail_for_anonymous_user(): void
$transId = (yield $this->transStart($stream, 'adm', 'admpa$$'))->transactionId();
$trans = $this->connection->continueTransaction($transId, null);

assert($trans instanceof EventStoreTransaction);
\assert($trans instanceof EventStoreTransaction);
yield $trans->writeAsync();
yield $this->expectExceptionFromCallback(AccessDenied::class, function () use ($trans) {
return $trans->commitAsync();
Expand Down Expand Up @@ -195,7 +195,7 @@ public function operations_on_system_stream_succeed_for_admin(): void
$transId = (yield $this->transStart($stream, 'adm', 'admpa$$'))->transactionId();
$trans = $this->connection->continueTransaction($transId, new UserCredentials('adm', 'admpa$$'));

assert($trans instanceof EventStoreTransaction);
\assert($trans instanceof EventStoreTransaction);
yield $trans->writeAsync();
yield $trans->commitAsync();

Expand Down

0 comments on commit a5fda5a

Please sign in to comment.