#22 Bug in PHP UnitTests: Test failure resource filepath error

open
nobody
None
5
2011-09-10
2011-09-10
stefan667
No

This affects the unit tests that shipped with wurfl-php-1.3.1

The test case WURFLRequestFactoryTest::testCreateRequest() fails due to a filepath error, the given resource file cannot be found.

1) WURFLRequestFactoryTest::testCreateRequest
fopen(../resources/request.yml): failed to open stream: No such file or directory

/home/stefan/wurfl/wurfl-php-1.3.1/tests/PHPUnit/WURFL/WURFLRequestFactoryTest.php:30
/home/stefan/wurfl/wurfl-php-1.3.1/tests/PHPUnit/WURFL/WURFLRequestFactoryTest.php:17

See attached patch file for a fix.

Thanks!

NOTE: Tests were run with PHPUnit 3.5.15

Discussion

  • stefan667
    stefan667
    2011-09-10

    patch file for described bug