Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
94e5e554
Commit
94e5e554
authored
Jan 11, 2015
by
Guilherme Blanco
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #770 from doctrine/composer-autoload-dev
Moved Doctrine\Tests namespace to composer autoload-dev.
parents
32fae862
c5e5d592
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
composer.json
composer.json
+3
-0
TestInit.php
tests/Doctrine/Tests/TestInit.php
+2
-6
No files found.
composer.json
View file @
94e5e554
...
@@ -26,6 +26,9 @@
...
@@ -26,6 +26,9 @@
"autoload"
:
{
"autoload"
:
{
"psr-0"
:
{
"Doctrine
\\
DBAL
\\
"
:
"lib/"
}
"psr-0"
:
{
"Doctrine
\\
DBAL
\\
"
:
"lib/"
}
},
},
"autoload-dev"
:
{
"psr-0"
:
{
"Doctrine
\\
Tests
\\
"
:
"tests/"
}
},
"extra"
:
{
"extra"
:
{
"branch-alias"
:
{
"branch-alias"
:
{
"dev-master"
:
"2.6.x-dev"
"dev-master"
:
"2.6.x-dev"
...
...
tests/Doctrine/Tests/TestInit.php
View file @
94e5e554
...
@@ -8,14 +8,10 @@ date_default_timezone_set('UTC');
...
@@ -8,14 +8,10 @@ date_default_timezone_set('UTC');
if
(
file_exists
(
__DIR__
.
'/../../../vendor/autoload.php'
))
{
if
(
file_exists
(
__DIR__
.
'/../../../vendor/autoload.php'
))
{
// dependencies were installed via composer - this is the main project
// dependencies were installed via composer - this is the main project
$classLoader
=
require
__DIR__
.
'/../../../vendor/autoload.php'
;
require
__DIR__
.
'/../../../vendor/autoload.php'
;
}
elseif
(
file_exists
(
__DIR__
.
'/../../../../../autoload.php'
))
{
}
elseif
(
file_exists
(
__DIR__
.
'/../../../../../autoload.php'
))
{
// installed as a dependency in `vendor`
// installed as a dependency in `vendor`
$classLoader
=
require
__DIR__
.
'/../../../../../autoload.php'
;
require
__DIR__
.
'/../../../../../autoload.php'
;
}
else
{
}
else
{
throw
new
Exception
(
'Can\'t find autoload.php. Did you install dependencies via Composer?'
);
throw
new
Exception
(
'Can\'t find autoload.php. Did you install dependencies via Composer?'
);
}
}
/* @var $classLoader \Composer\Autoload\ClassLoader */
$classLoader
->
add
(
'Doctrine\\Tests\\'
,
__DIR__
.
'/../../'
);
unset
(
$classLoader
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment