[wp-trac] [WordPress Unit Tests] #137: Better separation of framework files from test suite

WordPress Trac noreply at wordpress.org
Wed Oct 31 19:40:44 UTC 2012


#137: Better separation of framework files from test suite
----------------------------+-----------------------
 Reporter:  scribu          |       Owner:
     Type:  enhancement     |      Status:  reopened
 Priority:  normal          |   Milestone:
Component:  Test Framework  |  Resolution:
 Keywords:                  |
----------------------------+-----------------------
Changes (by Viper007Bond):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 This breaks unit tests due to relative paths being used:

 {{{
 Warning: file([...]\wordpress-unit-tests\includes/data/
 formatting/entities.txt): failed to open stream: No such file or directory
 in [...]\wordpress-unit-tests\tests\formatting\ent2ncr.php o
 n line 21
 }}}

 It's trying to load things out of the root `data` folder out of
 `/includes/data/`.

-- 
Ticket URL: <http://unit-tests.trac.wordpress.org/ticket/137#comment:3>
WordPress Unit Tests <http://unit-tests.trac.wordpress.org>
My example project


More information about the wp-trac mailing list