logo       

Re: [MDB] about test case framework: msg#00379

php.pear.general

Subject: Re: [MDB] about test case framework

Hi,

sorry for my questions, I try to understand how the tests/drivers works. At
the begining of driver contructor I have (from mssql.php) :

function MDB_mssql()
{
$this->MDB_Common();
$this->phptype = 'mssql';
$this->dbsyntax = 'mssql';

$this->supported['Sequences'] = 1;
$this->supported['Indexes'] = 1;
$this->supported['AffectedRows'] = 1;
$this->supported['Summaryfunctions'] = 1;
$this->supported['OrderByText'] = 0;
$this->supported['CurrId'] = 1;
$this->supported['SelectRowRanges'] = 0;
$this->supported['LOBs'] = 1;
$this->supported['Replace'] = 0;
$this->supported['SubSelects'] = 1;

What means supported here: Supported by the driver, or supported by the
database. I mean a database can support a feature, but the driver does not
implement it ?

>From the test cases, I got for example :

mdb_usage_testcase : Starting testtransactions ...
Failure 1 : This database does not support Transactions expected true,
actual false
There were 1 failures for testtransactions
There were 0 errors for testtransactions

I understand it is normal that the test case print "This database does not
support Transactions", since this property is not even defined. But I don't
undestand "expected true". How the test know that it should be true?

Also, what is the complete preperty list that should be defined in each
driver? Here I think Transactions should be defined since mssql support
them.

--
Thierry bothorel

--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise