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
30a00c50
Commit
30a00c50
authored
May 24, 2006
by
doctrine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small require_once bug fix
parent
47e1cf51
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
10 deletions
+10
-10
DB.class.php
classes/DB.class.php
+1
-1
ForeignKey.class.php
classes/ForeignKey.class.php
+1
-0
IndexGenerator.php
classes/IndexGenerator.php
+1
-2
LocalKey.class.php
classes/LocalKey.class.php
+1
-0
Sensei.class.php
classes/Sensei/Sensei.class.php
+2
-2
run.php
tests/run.php
+4
-5
No files found.
classes/DB.class.php
View file @
30a00c50
...
...
@@ -3,7 +3,7 @@ class Doctrine_DB extends PDO implements Countable, IteratorAggregate {
/**
* default DSN
*/
const
DSN
=
"mysql://
zYne
:dc34@localhost/test"
;
const
DSN
=
"mysql://
root
:dc34@localhost/test"
;
/**
* executed queries
*/
...
...
classes/ForeignKey.class.php
View file @
30a00c50
<?php
require_once
(
"Relation.class.php"
);
/**
* Foreign Key
*/
...
...
classes/IndexGenerator.php
View file @
30a00c50
...
...
@@ -22,5 +22,4 @@ class Doctrine_IndexGenerator {
return
$value
;
}
}
?>
?>
classes/LocalKey.class.php
View file @
30a00c50
<?php
require_once
(
"Relation.class.php"
);
/**
* Local Key
*/
...
...
classes/Sensei/Sensei.class.php
View file @
30a00c50
...
...
@@ -94,10 +94,9 @@ class Sensei extends Doctrine_Access {
public
function
__construct
()
{
if
(
headers_sent
())
if
(
headers_sent
())
throw
new
Sensei_Exception
(
"Headers already sent. Couldn't initialize session."
);
$this
->
session
=
Doctrine_Manager
::
getInstance
()
->
getCurrentSession
();
$this
->
table
=
$this
->
session
->
getTable
(
"Sensei_session"
);
$this
->
init
();
...
...
@@ -107,6 +106,7 @@ class Sensei extends Doctrine_Access {
if
(
!
isset
(
$_SESSION
))
session_start
();
}
/**
* getRecord
...
...
tests/run.php
View file @
30a00c50
<?php
ob_start
();
require_once
(
"ConfigurableTestCase.class.php"
);
require_once
(
"ManagerTestCase.class.php"
);
require_once
(
"SessionTestCase.class.php"
);
...
...
@@ -18,11 +19,12 @@ require_once("SenseiTestCase.class.php");
require_once
(
"QueryTestCase.class.php"
);
print
"<pre>"
;
error_reporting
(
E_ALL
);
$test
=
new
GroupTest
(
"Doctrine Framework Unit Tests"
);
//$test->addTestCase(new Sensei_UnitTestCase());
$test
->
addTestCase
(
new
Doctrine_SessionTestCase
());
$test
->
addTestCase
(
new
Doctrine_TableTestCase
());
...
...
@@ -43,13 +45,10 @@ $test->addTestCase(new Doctrine_ConfigurableTestCase());
$test
->
addTestCase
(
new
Doctrine_Collection_OffsetTestCase
());
$test
->
addTestCase
(
new
Sensei_UnitTestCase
());
$test
->
addTestCase
(
new
Doctrine_CollectionTestCase
());
$test
->
addTestCase
(
new
Doctrine_QueryTestCase
());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
...
...
@@ -59,7 +58,7 @@ $test->addTestCase(new Doctrine_QueryTestCase());
print
"<pre>"
;
$test
->
run
(
new
HtmlReporter
());
$cache
=
Doctrine_Manager
::
getInstance
()
->
getCurrentSession
()
->
getCacheHandler
();
if
(
isset
(
$cache
))
{
...
...
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