Commit fd3bffc7 authored by jhassine's avatar jhassine

* Added Schema classes and some testcases (refs #11)

parent 9bd341d7
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema
* Holds information on one to many databases
*/
class Doctrine_Schema extends Doctrine_Schema_Object
implements Countable, IteratorAggregate
{
/** Aggregations: */
/** Compositions: */
/*** Attributes: ***/
/**
* Holds any number of databases contained in the schema
* @access private
*/
private $childs;
/**
*
* @param Doctrine_Schema_Database database * @return
* @access public
*/
public function addDatabase( $database ) {
} // end of member function addDatabase
/**
*
* @return
* @access public
*/
public function __toString( ) {
} // end of member function __toString
/**
*
* @return bool
* @access public
*/
public function isValid( ) {
} // end of member function isValid
} // end of Doctrine_Schema
?>
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema_Column
* Holds information on a database table field
*/
class Doctrine_Schema_Column extends Doctrine_Schema_Object
implements IteratorAggregate
{
/** Aggregations: */
/** Compositions: */
var $m_Vector = array();
/*** Attributes: ***/
/**
* Column name
* @access public
*/
public $name;
/**
* Column type e.g. varchar, char, int etc.
* @access public
*/
public $type;
/**
* Field max length
* @access public
*/
public $length;
/**
* Is an autoincrement column
* @access public
*/
public $autoincrement;
/**
* Default field value
* @access public
*/
public $default;
/**
* Is not null
* @access public
*/
public $notNull;
/**
* Column comment
* @access public
*/
public $description;
/**
* Column level check constraint
* @access public
*/
public $check;
/**
* Character encoding e.g. ISO-8859-1 or UTF-8 etc.
* @access public
*/
public $charset;
/**
*
* @return
* @access public
*/
public function __toString( ) {
} // end of member function __toString
/**
*
* @return
* @access public
*/
public function __clone( ) {
} // end of member function __clone
/**
*
* @return bool
* @access public
*/
public function isValid( ) {
} // end of member function isValid
} // end of Doctrine_Schema_Column
?>
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema_Database
* Holds information on a database
*/
class Doctrine_Schema_Database extends Doctrine_Schema_Object
implements Countable, IteratorAggregate
{
/** Aggregations: */
/** Compositions: */
var $m_;
/*** Attributes: ***/
/**
* Database name
* @access public
*/
public $name;
/**
* Database driver type
* @access public
*/
public $type;
/**
* Database server version
* @access public
*/
public $version;
/**
* The underlaying engine in the database e.g. InnoDB or MyISAM in MySQL.
* @access public
*/
public $engine;
/**
* Character encoding e.g. ISO-8859-1 or UTF-8 etc.
* @access public
*/
public $charset;
/**
* Foreign key constraints in the database
* @access public
*/
public $foreignKeyRelations;
/**
* Tables in the database
* @access private
*/
private $childs;
/**
*
* @return
* @access public
*/
public function __clone( ) {
} // end of member function __clone
/**
*
* @return
* @access public
*/
public function __toString( ) {
} // end of member function __toString
/**
*
* @return bool
* @access public
*/
public function isValid( ) {
} // end of member function isValid
/**
*
* @param Doctrine_Schema_Table table * @return Doctrine_Schema_Table
* @access public
*/
public function addTable( $table = null ) {
} // end of member function addTable
} // end of Doctrine_Schema_Database
?>
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema_Exception
*/
class Doctrine_Schema_Exception extends Exception
{
/** Aggregations: */
/** Compositions: */
/*** Attributes: ***/
} // end of Doctrine_Schema_Exception
?>
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema_Object
* Catches any non-property call from child classes and throws an exception.
*/
abstract class Doctrine_Schema_Object
implements IteratorAggregate, Countable
{
/** Aggregations: */
/** Compositions: */
/*** Attributes: ***/
/**
*
* @param string _property
* @param mixed _value
* @return
* @access public
*/
public function __set( $_property, $_value )
{
throw new Doctrine_Schema_Exception('Assignment of non-property');
} // end of member function __set
/**
*
* @param string _property
* @return
* @access public
*/
public function __get( $_property )
{
throw new Doctrine_Schema_Exception('Access of non-property');
} // end of member function __get
/**
*
* @return int
* @access public
*/
public function count( )
{
if(!empty($this->childs))
{
return count($this->childs);
}
return 0;
}
/**
*
* @return
* @access public
*/
public function getIterator( )
{
if(!empty($this->childs))
{
return new ArrayIterator($this->childs);
}
return new ArrayIterator();
}
} // end of Doctrine_Schema_Object
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema_Relation
* Holds information on a foreign key relation.
*/
class Doctrine_Schema_Relation extends Doctrine_Schema_Object
{
/** Aggregations: */
/** Compositions: */
/*** Attributes: ***/
/**
* Columns that refer to another table
* @access public
*/
public $referencingFields;
/**
* Columns that are referred from another table
* @access public
*/
public $referredFields;
/**
* ON UPDATE or ON DELETE action
* @static
* @access public
*/
public static $ACTION_RESTRICT = 1;
/**
* ON UPDATE or ON DELETE action
* @static
* @access public
*/
public static $ACTION_SET_NULL = 2;
/**
* ON UPDATE or ON DELETE action
* @static
* @access public
*/
public static $ACTION_CASCADE = 3;
/**
* ON UPDATE or ON DELETE action
* @static
* @access public
*/
public static $ACTION_NO_ACTION = 4;
/**
* ON UPDATE or ON DELETE action
* @static
* @access public
*/
public static $ACTION_SET_DEFAULT = 5;
/**
*
* @param Doctrine_Schema_Column referringColumns * @param Doctrine_Schema_Column referencedColumns * @return
* @access public
*/
public function setRelationBetween( $referringColumns, $referencedColumns ) {
} // end of member function setRelationBetween
/**
*
* @return
* @access public
*/
public function __toString( ) {
} // end of member function __toString
/**
*
* @return bool
* @access public
*/
public function isValid( ) {
} // end of member function isValid
} // end of Doctrine_Schema_Relation
?>
<?php
/*
* $Id$
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This software consists of voluntary contributions made by many individuals
* and is licensed under the LGPL. For more information, see
* <http://www.phpdoctrine.com>.
*/
/**
* @package Doctrine
* @url http://www.phpdoctrine.com
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
*/
/**
* class Doctrine_Schema_Table
* Holds information on a database table
*/
class Doctrine_Schema_Table extends Doctrine_Schema_Object
implements Countable, Countable, IteratorAggregate
{
/** Aggregations: */
/** Compositions: */
var $m_Vector = array();
var $m_;
/*** Attributes: ***/
/**
* Unique key fields
* @access public
*/
public $uniqueKeys;
/**
* Indexed columns
* @access public
*/
public $indexes;
/**
* Table name
* @access public
*/
public $name;
/**
* @access public
*/
public $primaryKeys;
/**
* Check constraint definition
* @access public
*/
public $check;
/**
* Character encoding e.g. ISO-8859-1 or UTF-8 etc.
* @access public
*/
public $charset;
/**
* Description or comment given in the schema
* @access public
*/
public $description;
/**
* Columns of the table
* @access private
*/
private $childs;
/**
*
* @return
* @access public
*/
public function __toString( ) {
} // end of member function __toString
/**
*
* @return
* @access public
*/
public function __clone( ) {
} // end of member function __clone
/**
*
* @return bool
* @access public
*/
public function isValid( ) {
} // end of member function isValid
/**
*
* @param Doctrine_Schema_Column column * @return Doctrine_Schema_Column
* @access public
*/
public function addColumn( $column = null ) {
} // end of member function addColumn
} // end of Doctrine_Schema_Table
?>
This diff is collapsed.
<?php
/**
* ImportTestCase.php - 24.8.2006 2.37.14
*
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
* @package doctrine
*/
class Doctrine_ImportTestCase extends Doctrine_UnitTestCase
{
function testDatabaseConnectionIsReverseEngineeredToSchema()
{
}
function testNativeColumnDefinitionsAreTranslatedCorrectly()
{
}
function testDoctrineRecordBaseClassesAreBuildCorrectlyAndToPath()
{
}
}
\ No newline at end of file
<?php
/**
* SchemaTestCase.php - 24.8.2006 1.18.54
*
* @author Jukka Hassinen <Jukka.Hassinen@BrainAlliance.com>
* @version $Id$
* @package Doctrine
*/
class Doctrine_SchemaTestCase extends Doctrine_UnitTestCase
{
function testEverySchemaObjectIsThrowingExceptionOnNonPropertyAssignment()
{
$isException = false;
$obj = new Doctrine_Schema();
try {
$obj->no_such_property = 'this should throw an exception';
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Database();
try {
$obj->no_such_property = 'this should throw an exception';
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Table();
try {
$obj->no_such_property = 'this should throw an exception';
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Column();
try {
$obj->no_such_property = 'this should throw an exception';
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Relation();
try {
$obj->no_such_property = 'this should throw an exception';
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
}
function testEverySchemaObjectIsThrowingExceptionOnNonPropertyAccess()
{
$isException = false;
$obj = new Doctrine_Schema();
try {
$value = $obj->no_such_property;
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Database();
try {
$value = $obj->no_such_property;
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Table();
try {
$value = $obj->no_such_property;
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Column();
try {
$value = $obj->no_such_property;
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
$isException = false;
$obj = new Doctrine_Schema_Relation();
try {
$value = $obj->no_such_property;
} catch (Doctrine_Schema_Exception $e)
{
$isException = true;
}
$this->assertTrue($isException);
}
function testSchemaDatabasePropertiesAreAssignableAndAccessible()
{
$obj = new Doctrine_Schema_Database();
$vars = array(
'name' => 'mydatabase',
'type' => 'MySQL',
'version' => '5.0',
'engine' => 'InnoDB',
'charset' => 'UTF-8'
);
foreach ($vars as $key => $val)
{
$obj->$key = $val;
$this->assertEqual($obj->$key, $val);
}
}
function testSchemaTablePropertiesAreAssignableAndAccessible()
{
$obj = new Doctrine_Schema_Table();
$vars = array(
'name' => 'User',
'check' => '(col1 < col2)',
'charset' => 'UTF-8',
'description' => 'User data'
);
foreach ($vars as $key => $val)
{
$obj->$key = $val;
$this->assertEqual($obj->$key, $val);
}
}
function testSchemaColumnPropertiesAreAssignableAndAccessible()
{
$obj = new Doctrine_Schema_Column();
$vars = array(
'name' => 'id',
'type' => 'int',
'length' => 10,
'autoincrement' => true,
'default' => null,
'notNull' => true,
'description' => 'user id',
'check' => 'id > 0',
'charset' => 'UTF-8'
);
foreach ($vars as $key => $val)
{
$obj->$key = $val;
$this->assertEqual($obj->$key, $val);
}
}
function testSchemaDatabaseIsCloneable()
{
}
function testSchemaIsTraversable()
{
/* @todo complete */
$schema = new Doctrine_Schema();
foreach($schema as $key => $db)
{
$this->assertEqual($db->name, $key);
foreach($db as $key => $table)
{
$this->assertEqual($table->name, $key);
foreach($table as $key => $col)
{
$this->assertEqual($col->name, $key);
}
}
}
}
}
\ No newline at end of file
......@@ -25,6 +25,9 @@ require_once("FilterTestCase.php");
require_once("ValueHolderTestCase.php");
require_once("QueryLimitTestCase.php");
require_once("SchemaTestCase.php");
require_once("ImportTestCase.php");
error_reporting(E_ALL);
$test = new GroupTest("Doctrine Framework Unit Tests");
......@@ -69,6 +72,10 @@ $test->addTestCase(new Doctrine_RawSql_TestCase());
$test->addTestCase(new Doctrine_Query_Limit_TestCase());
$test->addTestCase(new Doctrine_SchemaTestCase());
$test->addTestCase(new Doctrine_ImportTestCase());
//$test->addTestCase(new Doctrine_Cache_FileTestCase());
//$test->addTestCase(new Doctrine_Cache_SqliteTestCase());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment