This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 239795

Summary: AssertionError: FileObject must be found for D:\www\WiserCMS\_tests\includes\application\wisercms\mediaTest.php
Product: php Reporter: mrpc
Component: PHPUnitAssignee: Tomas Mysik <tmysik>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jamiepeloquin_nf
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 204110
Attachments: stacktrace

Description mrpc 2013-12-25 15:06:38 UTC
Build: NetBeans IDE Dev (Build 201312250002)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Windows 8

User Comments:
mrpc: right click on a file on projects window, tools/create tests.

jamiepeloquin_nf: Trying to build a Unit Test from Tools -> Create Test




Stacktrace: 
java.lang.AssertionError: FileObject must be found for D:\www\WiserCMS\_tests\includes\application\wisercms\mediaTest.php
   at org.netbeans.modules.php.phpunit.commands.SkeletonGenerator.generateTest(SkeletonGenerator.java:163)
   at org.netbeans.modules.php.phpunit.create.TestCreator.generateTest(TestCreator.java:103)
   at org.netbeans.modules.php.phpunit.create.TestCreator.createTests(TestCreator.java:83)
   at org.netbeans.modules.php.phpunit.PhpUnitTestingProvider.createTests(PhpUnitTestingProvider.java:122)
   at org.netbeans.modules.php.project.ui.actions.tests.CreateTestsAction$3.run(CreateTestsAction.java:223)
   at org.openide.filesystems.FileUtil$2.run(FileUtil.java:435)
Comment 1 mrpc 2013-12-25 15:06:40 UTC
Created attachment 143450 [details]
stacktrace
Comment 2 mrpc 2013-12-25 15:19:58 UTC
Actually, PHPunit settings were missing for some reason (maybe my fault), my bootstrap file wasn't set, so phpunit couldn't run. Maybe that caused the exception?
Comment 3 Tomas Mysik 2014-01-02 12:11:15 UTC
Logging added, let's wait for reopening.

Thanks.

http://hg.netbeans.org/web-main/rev/151948211077