Add more tests for framework classes

pull/181/head
Aleksander Machniak 10 years ago
parent 4bcb8ac002
commit 6fdf1f2072

@ -0,0 +1,20 @@
<?php
/**
* Test class to test rcube_cache_shared class
*
* @package Tests
*/
class Framework_CacheShared extends PHPUnit_Framework_TestCase
{
/**
* Class constructor
*/
function test_class()
{
$object = new rcube_cache_shared('db');
$this->assertInstanceOf('rcube_cache_shared', $object, "Class constructor");
}
}

@ -0,0 +1,20 @@
<?php
/**
* Test class to test rcube_contacts class
*
* @package Tests
*/
class Framework_Contacts extends PHPUnit_Framework_TestCase
{
/**
* Class constructor
*/
function test_class()
{
$object = new rcube_contacts(null, null);
$this->assertInstanceOf('rcube_contacts', $object, "Class constructor");
}
}

@ -0,0 +1,20 @@
<?php
/**
* Test class to test rcube_db class
*
* @package Tests
*/
class Framework_DB extends PHPUnit_Framework_TestCase
{
/**
* Class constructor
*/
function test_class()
{
$object = new rcube_db('test');
$this->assertInstanceOf('rcube_db', $object, "Class constructor");
}
}

@ -0,0 +1,20 @@
<?php
/**
* Test class to test rcube_imap_cache class
*
* @package Tests
*/
class Framework_ImapCache extends PHPUnit_Framework_TestCase
{
/**
* Class constructor
*/
function test_class()
{
$object = new rcube_imap_cache(null, null, null, null);
$this->assertInstanceOf('rcube_imap_cache', $object, "Class constructor");
}
}

@ -0,0 +1,20 @@
<?php
/**
* Test class to test rcube_ldap_generic class
*
* @package Tests
*/
class Framework_LdapGeneric extends PHPUnit_Framework_TestCase
{
/**
* Class constructor
*/
function test_class()
{
$object = new rcube_ldap_generic(array());
$this->assertInstanceOf('rcube_ldap_generic', $object, "Class constructor");
}
}

@ -7,15 +7,20 @@
<file>Framework/Bootstrap.php</file>
<file>Framework/Browser.php</file>
<file>Framework/Cache.php</file>
<file>Framework/CacheShared.php</file>
<file>Framework/Charset.php</file>
<file>Framework/Contacts.php</file>
<file>Framework/ContentFilter.php</file>
<file>Framework/Csv2vcard.php</file>
<file>Framework/DB.php</file>
<file>Framework/Enriched.php</file>
<file>Framework/Html.php</file>
<file>Framework/Html2text.php</file>
<file>Framework/Imap.php</file>
<file>Framework/ImapCache.php</file>
<file>Framework/ImapGeneric.php</file>
<file>Framework/Image.php</file>
<file>Framework/LdapGeneric.php</file>
<file>Framework/MessageHeader.php</file>
<file>Framework/MessagePart.php</file>
<file>Framework/Mime.php</file>

Loading…
Cancel
Save