[TYPO3-dev] Unit test failing on travis-ci but not locally

Dirk Wenzel wenzel at webfox03.de
Sat Jul 26 22:41:25 CEST 2014


update:
I just tried to figure out what happens
When I dump in my test case
 > get_class_methods(get_class($fixture))

locally I get:
array(16) {
   [0] => string(7) "__clone"
   [1] => string(5) "dummy"
   [2] => string(7) "expects"
   [3] => string(6) "method"
   [4] => string(27) "__phpunit_setOriginalObject"
   [5] => string(29) "__phpunit_getInvocationMocker"
   [6] => string(21) "__phpunit_hasMatchers"
   [7] => string(16) "__phpunit_verify"
   [8] => string(11) "__construct"
   [9] => string(13) "getServiceUrl"
   [10] => string(11) "getLocation"
   [11] => string(6) "getUrl"
   [12] => string(11) "destination"
   [13] => string(17) "getBoundsByRadius"
   [14] => string(8) "distance"
   [15] => string(17) "updateGeoLocation"
}

On travis-ci it is:
array(8) {
   [0] => string(7) "__clone"
   [1] => string(5) "dummy"
   [2] => string(7) "expects"
   [3] => string(6) "method"
   [4] => string(27) "__phpunit_setOriginalObject"
   [5] => string(29) "__phpunit_getInvocationMocker"
   [6] => string(21) "__phpunit_hasMatchers"
   [7] => string(16) "__phpunit_verify"
}

So it seem the class is not found on travis.


Am 26.07.14 17:32, schrieb Dirk Wenzel:
> Hi all,
> all tests for one of my classes do fail on travis-ci with:
>
> Fatal error: Call to undefined method
> Mock_Geocoder_e8ac39a2::updateGeoLocation() in
> /home/travis/build/dwenzel/typo3conf/ext/placements/Tests/Unit/Utility/GeocoderTest.php
> on line 211
>
> They run smooth in my local VM both from command line and in BE.
> I also changed the base class from
> \TYPO3\CMS\Extbase\Tests\Unit\BaseTestCase to
> \TYPO3\CMS\Core\Tests\UnitTestCase with the same result.
>
> All other test do run on travis-ci.
>
> Here is the code of the failing test:
> https://github.com/dwenzel/placements/blob/0ef93764fa13b209d8573cc5aafe47f29c5da79e/Tests/Unit/Utility/GeocoderTest.php
>
>
> and of the tested class:
> https://github.com/dwenzel/placements/blob/0ef93764fa13b209d8573cc5aafe47f29c5da79e/Classes/Utility/Geocoder.php
>
>
> travis-ci output can be seen here:
> https://travis-ci.org/dwenzel/placements/jobs/30915693
>
> Thank you for any hint.
>
> Cheers
> Dirk



More information about the TYPO3-dev mailing list