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
c3c4a284
Commit
c3c4a284
authored
Oct 05, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unit tests.
parent
5bec1b22
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
645 deletions
+14
-645
SchemaTestCase.php
tests/Export/SchemaTestCase.php
+2
-8
SchemaTestCase.php
tests/Import/SchemaTestCase.php
+1
-19
schema.yml
tests/schema.yml
+11
-618
No files found.
tests/Export/SchemaTestCase.php
View file @
c3c4a284
...
...
@@ -56,12 +56,6 @@ class Doctrine_Export_Schema_TestCase extends Doctrine_UnitTestCase
public
function
testYmlExport
()
{
$export
=
new
Doctrine_Export_Schema
();
$export
->
exportSchema
(
'schema.yml'
,
'yml'
,
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
DIRECTORY_SEPARATOR
.
'models'
,
$this
->
tables
);
$export
->
exportSchema
(
'schema
-export
.yml'
,
'yml'
,
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
DIRECTORY_SEPARATOR
.
'models'
,
$this
->
tables
);
}
public
function
testXmlExport
()
{
$export
=
new
Doctrine_Export_Schema
();
$export
->
exportSchema
(
'schema.xml'
,
'xml'
,
dirname
(
dirname
(
dirname
(
__FILE__
)))
.
DIRECTORY_SEPARATOR
.
'models'
,
$this
->
tables
);
}
}
}
\ No newline at end of file
tests/Import/SchemaTestCase.php
View file @
c3c4a284
...
...
@@ -49,22 +49,4 @@ class Doctrine_Import_Schema_TestCase extends Doctrine_UnitTestCase
unlink
(
'classes/Group.class.php'
);
}
}
public
function
testXmlImport
()
{
$import
=
new
Doctrine_Import_Schema
();
$import
->
importSchema
(
'schema.xml'
,
'xml'
,
'classes'
);
if
(
!
file_exists
(
'classes/User.class.php'
))
{
$this
->
fail
();
}
else
{
unlink
(
'classes/User.class.php'
);
}
if
(
!
file_exists
(
'classes/Group.class.php'
))
{
$this
->
fail
();
}
else
{
unlink
(
'classes/Group.class.php'
);
}
}
}
}
\ No newline at end of file
tests/schema.yml
View file @
c3c4a284
This diff is collapsed.
Click to expand it.
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