Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
assert-function-signature
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan Kuchař
assert-function-signature
Compare revisions
9a64ea59930c27d742833b10e145c3cd5f77ab5d to ccb77f3994f070cd7876c1242637e1656f71bce6
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
jkuchar1/assert-function-signature
Select target project
No results found
ccb77f3994f070cd7876c1242637e1656f71bce6
Select Git revision
Swap
Target
jkuchar1/assert-function-signature
Select target project
jkuchar1/assert-function-signature
1 result
9a64ea59930c27d742833b10e145c3cd5f77ab5d
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
CI: added artifacts when tests fails
· 930afd30
Jan Kuchař
authored
7 years ago
930afd30
Exception now show only two parts of path to make tests portable to CI
· f991593b
Jan Kuchař
authored
7 years ago
f991593b
Merge branch 'add-ci' into 'master'
· ccb77f39
Jan Kuchař
authored
7 years ago
Add ci See merge request
!2
ccb77f39
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+5
-0
5 additions, 0 deletions
.gitlab-ci.yml
src/exceptions.php
+1
-1
1 addition, 1 deletion
src/exceptions.php
tests/fn.assertSignature.wrongNumberOfArguments.phpt
+1
-1
1 addition, 1 deletion
tests/fn.assertSignature.wrongNumberOfArguments.phpt
with
7 additions
and
2 deletions
.gitlab-ci.yml
View file @
ccb77f39
...
...
@@ -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
This diff is collapsed.
Click to expand it.
src/exceptions.php
View file @
ccb77f39
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
tests/fn.assertSignature.wrongNumberOfArguments.phpt
View file @
ccb77f39
...
...
@@ -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
;};
...
...
This diff is collapsed.
Click to expand it.