From d3abad28764286cb8a58e5c74173d3fd671c5ac0 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 9 Feb 2014 17:37:16 +0100 Subject: Add more tests for framework classes --- tests/Framework/CacheShared.php | 20 ++++++++++++++++++++ tests/Framework/Contacts.php | 20 ++++++++++++++++++++ tests/Framework/DB.php | 20 ++++++++++++++++++++ tests/Framework/ImapCache.php | 20 ++++++++++++++++++++ tests/Framework/LdapGeneric.php | 20 ++++++++++++++++++++ tests/phpunit.xml | 5 +++++ 6 files changed, 105 insertions(+) create mode 100644 tests/Framework/CacheShared.php create mode 100644 tests/Framework/Contacts.php create mode 100644 tests/Framework/DB.php create mode 100644 tests/Framework/ImapCache.php create mode 100644 tests/Framework/LdapGeneric.php (limited to 'tests') diff --git a/tests/Framework/CacheShared.php b/tests/Framework/CacheShared.php new file mode 100644 index 000000000..9ddcafc7f --- /dev/null +++ b/tests/Framework/CacheShared.php @@ -0,0 +1,20 @@ +assertInstanceOf('rcube_cache_shared', $object, "Class constructor"); + } +} diff --git a/tests/Framework/Contacts.php b/tests/Framework/Contacts.php new file mode 100644 index 000000000..0167ea366 --- /dev/null +++ b/tests/Framework/Contacts.php @@ -0,0 +1,20 @@ +assertInstanceOf('rcube_contacts', $object, "Class constructor"); + } +} diff --git a/tests/Framework/DB.php b/tests/Framework/DB.php new file mode 100644 index 000000000..b7a063841 --- /dev/null +++ b/tests/Framework/DB.php @@ -0,0 +1,20 @@ +assertInstanceOf('rcube_db', $object, "Class constructor"); + } +} diff --git a/tests/Framework/ImapCache.php b/tests/Framework/ImapCache.php new file mode 100644 index 000000000..83612c549 --- /dev/null +++ b/tests/Framework/ImapCache.php @@ -0,0 +1,20 @@ +assertInstanceOf('rcube_imap_cache', $object, "Class constructor"); + } +} diff --git a/tests/Framework/LdapGeneric.php b/tests/Framework/LdapGeneric.php new file mode 100644 index 000000000..8cb1a2ce5 --- /dev/null +++ b/tests/Framework/LdapGeneric.php @@ -0,0 +1,20 @@ +assertInstanceOf('rcube_ldap_generic', $object, "Class constructor"); + } +} diff --git a/tests/phpunit.xml b/tests/phpunit.xml index a5942c433..8021933bb 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -7,15 +7,20 @@ Framework/Bootstrap.php Framework/Browser.php Framework/Cache.php + Framework/CacheShared.php Framework/Charset.php + Framework/Contacts.php Framework/ContentFilter.php Framework/Csv2vcard.php + Framework/DB.php Framework/Enriched.php Framework/Html.php Framework/Html2text.php Framework/Imap.php + Framework/ImapCache.php Framework/ImapGeneric.php Framework/Image.php + Framework/LdapGeneric.php Framework/MessageHeader.php Framework/MessagePart.php Framework/Mime.php -- cgit v1.2.3