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
f943213f
Commit
f943213f
authored
Sep 02, 2007
by
meus
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed errors after cleaning up tests. removed some tabs
parent
e360684d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
68 additions
and
19 deletions
+68
-19
Location.php
models/Location.php
+14
-0
MysqlIndexTestRecord.php
models/MysqlIndexTestRecord.php
+17
-0
mmrUser_C.php
models/mmrUser_C.php
+19
-0
PgsqlTestCase.php
tests/Export/PgsqlTestCase.php
+2
-1
Cms_Cateogry.php
tests/Export/_files2/Cms_Cateogry.php
+0
-0
Cms_CateogryLanguages.php
tests/Export/_files2/Cms_CateogryLanguages.php
+0
-0
Test.php
tests/Test.php
+6
-7
run.php
tests/run.php
+10
-11
No files found.
models/Location.php
0 → 100644
View file @
f943213f
<?php
class
Location
extends
Doctrine_Record
{
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'lat'
,
'double'
,
10
,
array
());
$this
->
hasColumn
(
'lon'
,
'double'
,
10
,
array
());
}
public
function
setUp
()
{
$this
->
hasMany
(
'LocationI18n as LocationI18n'
,
array
(
'local'
=>
'id'
,
'foreign'
=>
'id'
));
}
}
models/MysqlIndexTestRecord.php
0 → 100644
View file @
f943213f
<?php
class
MysqlIndexTestRecord
extends
Doctrine_Record
{
public
function
setTableDefinition
()
{
$this
->
hasColumn
(
'name'
,
'string'
,
null
);
$this
->
hasColumn
(
'code'
,
'integer'
,
4
);
$this
->
hasColumn
(
'content'
,
'string'
,
4000
);
$this
->
index
(
'content'
,
array
(
'fields'
=>
'content'
,
'type'
=>
'fulltext'
));
$this
->
index
(
'namecode'
,
array
(
'fields'
=>
array
(
'name'
,
'code'
),
'type'
=>
'unique'
));
$this
->
option
(
'type'
,
'MYISAM'
);
}
}
models/mmrUser_C.php
0 → 100644
View file @
f943213f
<?php
class
mmrUser_C
extends
Doctrine_Record
{
public
function
setUp
()
{
$this
->
hasMany
(
'mmrGroup_C as Group'
,
array
(
'local'
=>
'user_id'
,
'foreign'
=>
'group_id'
,
'refClass'
=>
'mmrGroupUser_C'
));
}
public
function
setTableDefinition
()
{
// Works when
$this
->
hasColumn
(
'u_id as id'
,
'string'
,
30
,
array
(
'primary'
=>
true
));
$this
->
hasColumn
(
'name'
,
'string'
,
30
);
}
}
tests/Export/PgsqlTestCase.php
View file @
f943213f
...
...
@@ -79,7 +79,8 @@ class Doctrine_Export_Pgsql_TestCase extends Doctrine_UnitTestCase
}
public
function
testExportSql
()
{
$sql
=
$this
->
export
->
exportSql
(
dirname
(
__FILE__
)
.
DIRECTORY_SEPARATOR
.
'_files'
);
$sql
=
$this
->
export
->
exportClassesSql
(
array
(
"FooRecord"
,
"FooReferenceRecord"
,
"FooLocallyOwned"
,
"FooForeignlyOwned"
,
"FooBarRecord"
,
"BarRecord"
));
//dirname(__FILE__) . DIRECTORY_SEPARATOR . '_files');
$this
->
assertEqual
(
$sql
,
array
(
0
=>
'CREATE TABLE foo_reference (foo1 BIGINT, foo2 BIGINT, PRIMARY KEY(foo1, foo2))'
,
1
=>
'CREATE TABLE foo_locally_owned (id BIGSERIAL, name VARCHAR(200), PRIMARY KEY(id))'
,
...
...
models
/Cms_Cateogry.php
→
tests/Export/_files2
/Cms_Cateogry.php
View file @
f943213f
File moved
models
/Cms_CateogryLanguages.php
→
tests/Export/_files2
/Cms_CateogryLanguages.php
View file @
f943213f
File moved
tests/Test.php
View file @
f943213f
...
...
@@ -20,7 +20,6 @@ class GroupTest extends UnitTestCase
$reporter
->
paintHeader
();
foreach
(
$this
->
_testCases
as
$k
=>
$testCase
)
{
$testCase
->
run
();
$this
->
_passed
+=
$testCase
->
getPassCount
();
$this
->
_failed
+=
$testCase
->
getFailCount
();
$this
->
_messages
=
array_merge
(
$this
->
_messages
,
$testCase
->
getMessages
());
...
...
tests/run.php
View file @
f943213f
...
...
@@ -408,8 +408,8 @@ class MyReporter extends HtmlReporter {
print
"
\"
>"
;
print
$this
->
_test
->
getTestCaseCount
()
.
' test cases'
;
print
" test cases complete:
\n
"
;
print
"<strong>"
.
$this
->
_test
->
getPassCount
()
.
"</strong> passes
,
"
;
print
"<strong>"
.
$this
->
_test
->
getFailCount
()
.
"</strong> fails
and
"
;
print
"<strong>"
.
$this
->
_test
->
getPassCount
()
.
"</strong> passes
and
"
;
print
"<strong>"
.
$this
->
_test
->
getFailCount
()
.
"</strong> fails
.
"
;
print
"</div>
\n
"
;
}
}
...
...
@@ -434,4 +434,3 @@ if (isset($argv[1]) && $argv[1] == "coverage") {
}
else
{
$test
->
run
(
$reporter
);
}
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