From 821c17d9e378ecd702a219dfa8392d4d48df3cd0 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 23 Mar 2011 08:54:40 +0100 Subject: exclude tests directory from coverage --- tests/phpunit.xml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/phpunit.xml (limited to 'tests/phpunit.xml') diff --git a/tests/phpunit.xml b/tests/phpunit.xml new file mode 100644 index 0000000..734fa95 --- /dev/null +++ b/tests/phpunit.xml @@ -0,0 +1,8 @@ + + + + + . + + + \ No newline at end of file -- cgit v1.2.3 From 90f29d6e671f4c24f75bdc4774f223c53bf0a46c Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 12 Apr 2011 08:47:44 +0200 Subject: first test for service factory --- src/SemanticScuttle/Service/Factory.php | 3 ++- tests/FactoryTest.php | 13 +++++++++++++ tests/phpunit.xml | 12 ++++++++---- 3 files changed, 23 insertions(+), 5 deletions(-) create mode 100644 tests/FactoryTest.php (limited to 'tests/phpunit.xml') diff --git a/src/SemanticScuttle/Service/Factory.php b/src/SemanticScuttle/Service/Factory.php index d7ff1d4..b661cdb 100644 --- a/src/SemanticScuttle/Service/Factory.php +++ b/src/SemanticScuttle/Service/Factory.php @@ -107,6 +107,7 @@ class SemanticScuttle_Service_Factory /** * Loads self::$db if it is not loaded already. + * Dies if the connection could not be established. * * @return void */ @@ -141,7 +142,7 @@ class SemanticScuttle_Service_Factory /** * Returns sql database object * - * @return void + * @return sql_db Database instance */ public static function getDb() { diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php new file mode 100644 index 0000000..980e92e --- /dev/null +++ b/tests/FactoryTest.php @@ -0,0 +1,13 @@ +assertInstanceOf( + 'sql_db', + SemanticScuttle_Service_Factory::getDb() + ); + } +} +?> \ No newline at end of file diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 734fa95..86b7b60 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -1,8 +1,12 @@ - + - - . - + + ../src/SemanticScuttle/ + ../data/templates/ + ../www/ + \ No newline at end of file -- cgit v1.2.3 From 40b4674e471f8b0fbdc77a26eec86018e2ab03ea Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Fri, 15 Apr 2011 19:22:19 +0200 Subject: exclude database layer files from coverage --- tests/phpunit.xml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/phpunit.xml') diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 86b7b60..3956445 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -7,6 +7,9 @@ ../src/SemanticScuttle/ ../data/templates/ ../www/ + + ../src/SemanticScuttle/db/ + \ No newline at end of file -- cgit v1.2.3