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
324b3ee4
Commit
324b3ee4
authored
Apr 07, 2010
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Testsuite to work with Git
parent
3a8d6360
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
2 deletions
+33
-2
.gitignore
tests/.gitignore
+2
-0
YamlMappingDriverTest.php
tests/Doctrine/Tests/ORM/Mapping/YamlMappingDriverTest.php
+4
-0
ConvertDoctrine1SchemaTest.php
...s/Doctrine/Tests/ORM/Tools/ConvertDoctrine1SchemaTest.php
+4
-0
YamlClassMetadataExporterTest.php
.../Tests/ORM/Tools/Export/YamlClassMetadataExporterTest.php
+4
-0
TestInit.php
tests/Doctrine/Tests/TestInit.php
+19
-2
No files found.
tests/.gitignore
0 → 100644
View file @
324b3ee4
Doctrine/Tests/Proxies/
Doctrine/Tests/ORM/Proxy/generated/
\ No newline at end of file
tests/Doctrine/Tests/ORM/Mapping/YamlMappingDriverTest.php
View file @
324b3ee4
...
...
@@ -12,6 +12,10 @@ class YamlMappingDriverTest extends AbstractMappingDriverTest
{
protected
function
_loadDriver
()
{
if
(
!
class_exists
(
'Symfony\Components\Yaml\Yaml'
,
true
))
{
$this
->
markTestSkipped
(
'Please install Symfony YAML Component into the include path of your PHP installation.'
);
}
return
new
YamlDriver
(
__DIR__
.
DIRECTORY_SEPARATOR
.
'yaml'
);
}
}
\ No newline at end of file
tests/Doctrine/Tests/ORM/Tools/ConvertDoctrine1SchemaTest.php
View file @
324b3ee4
...
...
@@ -40,6 +40,10 @@ class ConvertDoctrine1SchemaTest extends \Doctrine\Tests\OrmTestCase
{
public
function
testTest
()
{
if
(
!
class_exists
(
'Symfony\Components\Yaml\Yaml'
,
true
))
{
$this
->
markTestSkipped
(
'Please install Symfony YAML Component into the include path of your PHP installation.'
);
}
$cme
=
new
ClassMetadataExporter
();
$converter
=
new
ConvertDoctrine1Schema
(
__DIR__
.
'/doctrine1schema'
);
...
...
tests/Doctrine/Tests/ORM/Tools/Export/YamlClassMetadataExporterTest.php
View file @
324b3ee4
...
...
@@ -37,6 +37,10 @@ class YamlClassMetadataExporterTest extends AbstractClassMetadataExporterTest
{
protected
function
_getType
()
{
if
(
!
class_exists
(
'Symfony\Components\Yaml\Yaml'
,
true
))
{
$this
->
markTestSkipped
(
'Please install Symfony YAML Component into the include path of your PHP installation.'
);
}
return
'yaml'
;
}
}
\ No newline at end of file
tests/Doctrine/Tests/TestInit.php
View file @
324b3ee4
...
...
@@ -13,8 +13,25 @@ require_once __DIR__ . '/../../../lib/Doctrine/Common/ClassLoader.php';
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Doctrine'
);
$classLoader
->
register
();
$classLoader
=
new
\Doctrine\Common\ClassLoader
(
'Symfony'
,
__DIR__
.
'/../../../lib/vendor'
);
$classLoader
->
register
();
if
(
!
file_exists
(
__DIR__
.
"/Proxies"
))
{
if
(
!
mkdir
(
__DIR__
.
"/Proxies"
))
{
throw
new
Exception
(
"Could not create "
.
__DIR__
.
"/Proxies Folder."
);
}
}
if
(
!
file_exists
(
__DIR__
.
"/ORM/Proxy/generated"
))
{
if
(
!
mkdir
(
__DIR__
.
"/ORM/Proxy/generated"
))
{
throw
new
Exception
(
"Could not create "
.
__DIR__
.
"/ORM/Proxy/generated Folder."
);
}
}
spl_autoload_register
(
function
(
$class
)
{
if
(
strpos
(
$class
,
'Symfony'
)
===
0
)
{
$file
=
str_replace
(
"
\\
"
,
"/"
,
$class
);
if
(
@
fopen
(
$class
,
"r"
))
{
require_once
(
$file
);
}
}
});
set_include_path
(
__DIR__
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'..'
.
DIRECTORY_SEPARATOR
.
'lib'
...
...
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