From a08b4c90d961670d8312a958e40f636b84d02a13 Mon Sep 17 00:00:00 2001 From: pombredanne Date: Sun, 4 Nov 2007 00:00:12 +0000 Subject: [PATCH] Added passing test with null input. --- .../launching/PHPSourceLookupParticipantTest.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/net.sourceforge.phpeclipse.xdebug.test/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourceLookupParticipantTest.java b/net.sourceforge.phpeclipse.xdebug.test/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourceLookupParticipantTest.java index 06efdb9..0b325c3 100644 --- a/net.sourceforge.phpeclipse.xdebug.test/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourceLookupParticipantTest.java +++ b/net.sourceforge.phpeclipse.xdebug.test/src/net/sourceforge/phpeclipse/xdebug/php/launching/PHPSourceLookupParticipantTest.java @@ -11,5 +11,11 @@ public class PHPSourceLookupParticipantTest extends TestCase { 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); + } } -- 1.7.1