2

I have a CakePHP project where I also integrated Travis-CI to start automated testing. Now my tests look something like this:

<?php 
    App::uses('CustomControllerTest', 'Lib');
    class AllocationsControllerTest extends CustomControllerTest
{...

My travis.yml:

language: php
php:
  - '5.3'

before_script:
  - composer install
  - php bootstrap.php

script:
  phpunit --configuration phpunit.xml --coverage-text

bootsrap.php is currently empty.

When triggering Travis it says it doesn't find Class'App'. What do I have to add to the .travis.yml or bootstrap.php so it loads all the dependencies needed in the test classes?

mnille
  • 1,328
  • 4
  • 16
  • 20
Janet Do
  • 31
  • 2
  • Why not looking into existing projects to find out? See the awesome list for available ones, e.g. https://github.com/dereuromark/cakephp-sandbox/blob/3.0/.travis.yml – mark Aug 10 '16 at 13:08

0 Answers0