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 - AssertionError: FileObject must be found for D:\www\WiserCMS\_tests\includes\application\wisercms\mediaTest.php
Summary: AssertionError: FileObject must be found for D:\www\WiserCMS\_tests\includes\...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: PHPUnit (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-25 15:06 UTC by mrpc
Modified: 2014-01-02 12:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 204110


Attachments
stacktrace (4.92 KB, text/plain)
2013-12-25 15:06 UTC, mrpc
Details

Note You need to log in before you can comment on or make changes to this bug.
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