\JDatabaseDriverTest
Test class for JDatabaseDriver.
Synopsis
class JDatabaseDriverTest
extends TestCaseDatabase
{
- // members
- protected JDatabaseDriver $db;
- // Inherited members from TestCaseDatabase
- protected JDatabaseDriver $driver;
- // methods
- protected void setUp()
- public void test__callQuote()
- public void test__callQuoteName()
- public void test__callUnknown()
- public void test__construct()
- public void testGetInstance()
- public void test__destruct()
- public void testGetConnection()
- public void testGetConnectors()
- public void testGetCount()
- public void testGetDatabase()
- public void testGetDateFormat()
- public void testSplitSql()
- public void testGetErrorNum()
- public void testGetErrorMsg()
- public void testGetLog()
- public void testGetPrefix()
- public void testGetNullDate()
- public void testGetMinimum()
- public void testIsMinimumVersion()
- public void testSetDebug()
- public void testSetQuery()
- public void testReplacePrefix()
- public void testStderr()
- public void testQuote()
- public void testQuoteBooleanTrue()
- public void testQuoteBooleanFalse()
- public void testQuoteNull()
- public void testQuoteInteger()
- public void testQuoteFloat()
- public void testQuoteName()
- public void testTruncateTable()
- // Inherited methods from TestCaseDatabase
- public static bool errorCallback()
- public static void setUpBeforeClass()
- public static void tearDownAfterClass()
- public void assignMockCallbacks()
- public void assignMockReturns()
- public JApplication getMockApplication()
- public JApplicationCms getMockCmsApp()
- public JConfig getMockConfig()
- public JDatabase getMockDatabase()
- public JEventDispatcher getMockDispatcher()
- public JDocument getMockDocument()
- public JLanguage getMockLanguage()
- public JSession getMockSession()
- public JApplicationWeb getMockWeb()
- protected PHPUnit_Extensions_Database_DB_DefaultDatabaseConnection getConnection()
- protected PHPUnit_Extensions_Database_DataSet_XmlDataSet getDataSet()
- protected PHPUnit_Extensions_Database_Operation_DatabaseOperation getSetUpOperation()
- protected PHPUnit_Extensions_Database_Operation_DatabaseOperation getTearDownOperation()
- protected void restoreFactoryState()
- protected void saveErrorHandlers()
- protected void saveFactoryState()
- protected void setErrorHandlers()
- protected void setErrorCallback()
- protected void setUp()
Hierarchy
Extends
Tasks
Tasks
Line | Task |
---|---|
101+ | Implement test__construct(). |
114+ | Implement testGetInstance(). |
127+ | Implement test__destruct(). |
241+ | Implement testGetErrorNum(). |
254+ | Implement testGetErrorMsg(). |
394+ | Implement testStderr(). |
Members
protected
- $db — JDatabaseDriver
- $driver — JDatabaseDriver
Methods
protected
- setUp() — Sets up the fixture, for example, opens a network connection.
public
- testGetConnection() — Tests the JDatabaseDriver::getConnection method.
- testGetConnectors() — Tests the JDatabaseDriver::getConnectors method.
- testGetCount() — Tests the JDatabaseDriver::getCount method.
- testGetDatabase() — Tests the JDatabaseDriver::getDatabase method.
- testGetDateFormat() — Tests the JDatabaseDriver::getDateFormat method.
- testGetErrorMsg() — Test...
- testGetErrorNum() — Test...
- testGetInstance() — Test...
- testGetLog() — Tests the JDatabaseDriver::getLog method.
- testGetMinimum() — Tests the JDatabaseDriver::getMinimum method.
- testGetNullDate() — Tests the JDatabaseDriver::getNullDate method.
- testGetPrefix() — Tests the JDatabaseDriver::getPrefix method.
- testIsMinimumVersion() — Tests the JDatabaseDriver::isMinimumVersion method.
- testQuote() — Tests the JDatabaseDriver::quote method.
- testQuoteBooleanFalse() — Tests the JDatabaseDriver::quote method.
- testQuoteBooleanTrue() — Tests the JDatabaseDriver::quote method.
- testQuoteFloat() — Tests the JDatabaseDriver::quote method.
- testQuoteInteger() — Tests the JDatabaseDriver::quote method.
- testQuoteName() — Tests the JDatabaseDriver::quoteName method.
- testQuoteNull() — Tests the JDatabaseDriver::quote method.
- testReplacePrefix() — Tests the JDatabaseDriver::replacePrefix method.
- testSetDebug() — Tests the JDatabaseDriver::setDebug method.
- testSetQuery() — Tests the JDatabaseDriver::setQuery method.
- testSplitSql() — Tests the JDatabaseDriver::splitSql method.
- testStderr() — Test...
- testTruncateTable() — Tests the JDatabaseDriver::truncateTable method.
- test__callQuote() — Test for the JDatabaseDriver::__call method.
- test__callQuoteName() — Test for the JDatabaseDriver::__call method.
- test__callUnknown() — Test for the JDatabaseDriver::__call method.
- test__construct() — Test...
- test__destruct() — Test...
Inherited from TestCaseDatabase
protected
- getConnection() — Returns the default database connection for running the tests.
- getDataSet() — Gets the data set to be loaded into the database during setup
- getSetUpOperation() — Returns the database operation executed in test setup.
- getTearDownOperation() — Returns the database operation executed in test cleanup.
- restoreFactoryState() — Sets the Factory pointers
- saveErrorHandlers() — Saves the current state of the JError error handlers.
- saveFactoryState() — Saves the Factory pointers
- setErrorCallback() — Sets the JError error handlers to callback mode and points them at the test logging method.
- setErrorHandlers() — Sets the JError error handlers.
- setUp() — Sets up the fixture.
public
- assignMockCallbacks() — Assigns mock callbacks to methods.
- assignMockReturns() — Assigns mock values to methods.
- errorCallback() — Receives the callback from JError and logs the required error information for the test.
- getMockApplication() — Gets a mock application object.
- getMockCmsApp() — Gets a mock CMS application object.
- getMockConfig() — Gets a mock configuration object.
- getMockDatabase() — Gets a mock database object.
- getMockDispatcher() — Gets a mock dispatcher object.
- getMockDocument() — Gets a mock document object.
- getMockLanguage() — Gets a mock language object.
- getMockSession() — Gets a mock session object.
- getMockWeb() — Gets a mock web object.
- setUpBeforeClass() — This method is called before the first test of this test class is run.
- tearDownAfterClass() — This method is called after the last test of this test class is run.