Added passing test with null input.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.test / src / net / sourceforge / phpeclipse / xdebug / php / launching / PHPSourceLookupParticipantTest.java
index 2501476..0b325c3 100644 (file)
@@ -8,7 +8,14 @@ public class PHPSourceLookupParticipantTest extends TestCase {
 
        public void testFindSourceElementsObject() throws CoreException {
                PHPSourceLookupParticipant psp = new PHPSourceLookupParticipant();
-               psp.findSourceElements(new Object());
+               Object[] findSourceElements = psp.findSourceElements(new Object());
+               assertTrue("array should be empty",findSourceElements.length == 0);
+       }
+       
+       public void testFindSourceElementsObject_WithNull() throws CoreException {
+               PHPSourceLookupParticipant psp = new PHPSourceLookupParticipant();
+               Object[] findSourceElements = psp.findSourceElements(null);
+               assertTrue("array should be empty",findSourceElements.length == 0);
        }
 
 }