From f991593bf2afe922b0ad71f40d20fdd48c06a266 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Kucha=C5=99?= <honza.kuchar@grifart.cz>
Date: Thu, 27 Apr 2017 10:24:48 +0200
Subject: [PATCH] Exception now show only two parts of path to make tests
 portable to CI

---
 src/exceptions.php                                   | 2 +-
 tests/fn.assertSignature.wrongNumberOfArguments.phpt | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/exceptions.php b/src/exceptions.php
index 1aa7d8b..71863eb 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 1956fab..af4f147 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;};
 
-- 
GitLab