From a1fa85c30997d54e8898bf656742b5bd5fd53518 Mon Sep 17 00:00:00 2001 From: pombredanne Date: Sat, 3 Nov 2007 23:56:34 +0000 Subject: [PATCH] Fixed issue with object casts. Now the method returns an empty array if we recieve an object of a type we do not know about. --- .../launching/PHPSourceLookupParticipantTest.java | 3 ++- 1 files changed, 2 insertions(+), 1 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 2501476..06efdb9 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 @@ -8,7 +8,8 @@ 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); } } -- 1.7.1