]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
suppressing warnings in web services unit tests (hellekin)
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Apr 2011 00:17:24 +0000 (00:17 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 14 Apr 2011 00:17:24 +0000 (00:17 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8989 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/tests/services/api.php

index 39951da1c81d42780f93a174a7bed7dcc813fae1..3d07c0bbb4ed6a9f6656d35e3fe01bc3844c99f2 100644 (file)
@@ -19,7 +19,7 @@ class ElggCoreServicesApiTest extends ElggCoreUnitTest {
 // expose_function
        public function testExposeFunctionNoMethod() {
                try {
-                       expose_function();
+                       @expose_function();
                        $this->assertTrue(FALSE);
                } catch (Exception $e) {
                        $this->assertIsA($e, 'InvalidParameterException');
@@ -29,7 +29,7 @@ class ElggCoreServicesApiTest extends ElggCoreUnitTest {
        
        public function testExposeFunctionNoFunction() {
                try {
-                       expose_function('test');
+                       @expose_function('test');
                        $this->assertTrue(FALSE);
                } catch (Exception $e) {
                        $this->assertIsA($e, 'InvalidParameterException');
@@ -39,7 +39,7 @@ class ElggCoreServicesApiTest extends ElggCoreUnitTest {
        
        public function testExposeFunctionBadParameters() {
                try {
-                       expose_function('test', 'test', 'BAD');
+                       @expose_function('test', 'test', 'BAD');
                        $this->assertTrue(FALSE);
                } catch (Exception $e) {
                        $this->assertIsA($e, 'InvalidParameterException');
@@ -59,7 +59,7 @@ class ElggCoreServicesApiTest extends ElggCoreUnitTest {
        
        public function testExposeFunctionBadHttpMethod() {
                try {
-                       expose_function('test', 'test', null, '', 'BAD');
+                       @expose_function('test', 'test', null, '', 'BAD');
                        $this->assertTrue(FALSE);
                } catch (Exception $e) {
                        $this->assertIsA($e, 'InvalidParameterException');