diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d1e2cb3098a7549f9795566e718175c955712024..a99bf0cf2bdecc85ce1f18150e93d584097265cf 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,3 +10,8 @@ tests-php7.1: - composer install --ansi --no-interaction script: - vendor/bin/tester -c tests/php.ini tests + artifacts: + expire_in: 30 minutes + paths: + - tests + when: on_failure diff --git a/src/exceptions.php b/src/exceptions.php index 1aa7d8bd661a9d457964333272bb530ac0ae6375..71863ebb76296e23217a71fe7bcb73ae27979f86 100644 --- a/src/exceptions.php +++ b/src/exceptions.php @@ -7,7 +7,7 @@ use Throwable; final class AssertFunctionError extends \AssertionError { - const PATH_DEPTH = 3; + const PATH_DEPTH = 2; /** @internal use named constructors instead */ public function __construct(\ReflectionFunction $reflection, string $message, \Throwable $previous = NULL) diff --git a/tests/fn.assertSignature.wrongNumberOfArguments.phpt b/tests/fn.assertSignature.wrongNumberOfArguments.phpt index 1956fabb492bbfb6f9b9dde5c704c7f2f3e07fbc..af4f1471833a0ae6a290c121fa38ea6578002e3a 100644 --- a/tests/fn.assertSignature.wrongNumberOfArguments.phpt +++ b/tests/fn.assertSignature.wrongNumberOfArguments.phpt @@ -4,7 +4,7 @@ require __DIR__ . '/bootstrap.php'; require __DIR__ . '/testClasses.php'; use function Grifart\AssertFunction\{assertSignature, nullable, params}; use Tester\Assert; -$position = 'assert-function-signature/tests/fn.assertSignature.wrongNumberOfArguments.phpt:9'; +$position = 'tests/fn.assertSignature.wrongNumberOfArguments.phpt:9'; $f1 = function(T1 $t1, T2 $t2): T3 {return new T3;};