Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P PHP_XLSXWriter
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 101
    • Issues 101
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 24
    • Merge requests 24
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mk-j
  • PHP_XLSXWriter
  • Merge requests
  • !18

Switched from a global phpunit install to using composer to manage the phpUnit dependency and autoloading.

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/munisense/improvement/ComposerPHPUnit into master Nov 15, 2014
  • Overview 1
  • Commits 2
  • Pipelines 0
  • Changes 4

Created by: jpastoor

I added the phpUnit dependency to composer and used the autoloader generated by composer to include both the class files as phpUnit.

Apart from describing your library, composer does a good job at autoloading and dependency management as well. PhpUnit is added as dependency in require_dev, this means that people that just use the library won't need it, only developers of the library itself.

To install dependencies and generate the autoloader do composer install.

This pull request also includes changes from #17. This pull requests also adds .idea to .gitignore, those files are generated by phpStorm IDE. This pull requests also prevents a strict warning in your unit tests.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/munisense/improvement/ComposerPHPUnit