Giter Site home page Giter Site logo

Fixing tests about doctrinebundle HOT 6 CLOSED

doctrine avatar doctrine commented on May 22, 2024
Fixing tests

from doctrinebundle.

Comments (6)

jmikola avatar jmikola commented on May 22, 2024

Will do.

from doctrinebundle.

jmikola avatar jmikola commented on May 22, 2024

Are you sure?

[avocado: DoctrineBundle] master $ ./composer.phar install --install-suggests
Installing dependencies
  - Package twig/twig (1.6.1)
    Downloading                                                                 
    Unpacking archive
    Cleaning up

  - Package doctrine/dbal (2.2.1)
    Downloading                                                                 
    Unpacking archive
    Cleaning up

  - Package doctrine/orm (2.2.1)
    Downloading                                                                 
    Unpacking archive
    Cleaning up

  - Package doctrine/common (2.2.1)
    Downloading                                                                 
    Unpacking archive
    Cleaning up

  - Package symfony/symfony (dev-master)
    Cloning 294b57e1b15f28541444f667be5c98d90ab8c668

Writing lock file
Generating autoload files
[avocado: DoctrineBundle] master $ phpunit 
PHPUnit 3.6.5 by Sebastian Bergmann.

Configuration read from /home/jmikola/workspace/DoctrineBundle/phpunit.xml.dist

................................................................. 65 / 86 ( 75%)
.....................

Time: 1 second, Memory: 69.00Mb

OK (86 tests, 382 assertions)

One problem I noticed is that ``--install-suggestsdoesn't installdoctrine/orm` despite it being listed as a suggested dep in `composer.json`. I had to move the package into the "require" block to actually get the dependency. Without ORM installed, the test suite fails hard:

[avocado: DoctrineBundle] master $ phpunit 
PHPUnit 3.6.5 by Sebastian Bergmann.

Configuration read from /home/jmikola/workspace/DoctrineBundle/phpunit.xml.dist

.EE.............................................................. 65 / 86 ( 75%)
........PHP Fatal error:  Class 'Doctrine\ORM\Mapping\ClassMetadataInfo' not found in /home/jmikola/workspace/DoctrineBundle/Tests/Mapping/MetadataFactoryTest.php on line 23

Fatal error: Class 'Doctrine\ORM\Mapping\ClassMetadataInfo' not found in /home/jmikola/workspace/DoctrineBundle/Tests/Mapping/MetadataFactoryTest.php on line 23

from doctrinebundle.

schmittjoh avatar schmittjoh commented on May 22, 2024

Maybe it's just travisci that fails?

http://travis-ci.org/#!/doctrine/DoctrineBundle/jobs/799379

from doctrinebundle.

jmikola avatar jmikola commented on May 22, 2024

Woah, it looks like I was testing my own outdated fork. Fixing.

from doctrinebundle.

schmittjoh avatar schmittjoh commented on May 22, 2024

Thanks!

from doctrinebundle.

jmikola avatar jmikola commented on May 22, 2024

Thanks for catching this. I wasn't aware the bundle was set up for Travis CI - I just enabled it on my fork so this shouldn't happen again :)

from doctrinebundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.