Fixed issue with object casts. Now the method returns an empty array if we recieve...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.test / src / net / sourceforge / phpeclipse / xdebug / php / launching / PHPSourceLookupParticipantTest.java
1 package net.sourceforge.phpeclipse.xdebug.php.launching;
2
3 import org.eclipse.core.runtime.CoreException;
4
5 import junit.framework.TestCase;
6
7 public class PHPSourceLookupParticipantTest extends TestCase {
8
9         public void testFindSourceElementsObject() throws CoreException {
10                 PHPSourceLookupParticipant psp = new PHPSourceLookupParticipant();
11                 Object[] findSourceElements = psp.findSourceElements(new Object());
12                 assertTrue("array should be empty",findSourceElements.length == 0);
13         }
14
15 }