Skip to content

Can't run phpunit locally #141

@thinkingmedia

Description

@thinkingmedia

I'm having trouble getting the build or phpunit to work.

Here are my steps:

git clone https://github.com/php-tmdb/api
cd api
composer install -n
vendor/bin/phpunit

The above fails with this error.

PHP Fatal error: Class 'PHPUnit_Framework_TestCase' not found in /api/test/Tmdb/Tests/TestCase.php on line 25

Also, it looks like there is a Phing build script, but Phing is not a dependency. So I tried this

git clone https://github.com/php-tmdb/api
cd api
composer require phing/phing --dev
vendor/bin/phing

Which gives this error.

Buildfile: /api/build.xml

php-tmdb-api > clean:

   [delete] Directory /api/${basedir}/build/api does not exist or is not a directory.
   [delete] Directory /api/${basedir}/build/coverage does not exist or is not a directory.
   [delete] Directory /api/${basedir}/build/logs does not exist or is not a directory.
   [delete] Directory /api/${basedir}/build/pdepend does not exist or is not a directory.

php-tmdb-api > prepare:

    [mkdir] Created dir: /api/${basedir}/build/api
    [mkdir] Created dir: /api/${basedir}/build/coverage
    [mkdir] Created dir: /api/${basedir}/build/logs
    [mkdir] Created dir: /api/${basedir}/build/pdepend
    [mkdir] Created dir: /api/${basedir}/build/phpdox

php-tmdb-api > lint:


BUILD FAILED
/api/build.xml:38:38: phing.types.FileSet doesn't support the 'modified' creator/adder.

Total time: 0.8931 seconds

I can't figure out why Travis can run the tests and I can't.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions