Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
composer-phpcodesniffer-standards-plugin
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
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
Daniel Siepmann
composer-phpcodesniffer-standards-plugin
Commits
175ff491
Commit
175ff491
authored
7 years ago
by
Daniel Hürtgen
Browse files
Options
Downloads
Patches
Plain Diff
TASK: Bootstrap for tests provided
parent
45a0c080
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/bootstrap.php
+20
-0
20 additions, 0 deletions
tests/bootstrap.php
with
20 additions
and
0 deletions
tests/bootstrap.php
0 → 100644
+
20
−
0
View file @
175ff491
<?php
error_reporting
(
E_ALL
);
if
(
function_exists
(
'date_default_timezone_set'
)
&&
function_exists
(
'date_default_timezone_get'
))
{
date_default_timezone_set
(
@
date_default_timezone_get
());
}
function
includeIfExists
(
$file
)
{
return
file_exists
(
$file
)
?
include
$file
:
false
;
}
if
(
!
$autoLoader
=
includeIfExists
(
__DIR__
.
'/../vendor/autoload.php'
))
{
echo
'You must set up the project dependencies, run the following command from the project root:'
.
PHP_EOL
.
'php composer.phar install'
.
PHP_EOL
;
exit
(
1
);
}
return
$autoLoader
;
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment