Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.
/ testing-php Public archive

Composer package for PHP unit testing tools, using Phing for Jenkins or local development

License

Notifications You must be signed in to change notification settings

Bit-Wasp/testing-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testing-php

Composer package for PHP unit testing tools, using Phing for Jenkins or local development Includes:

  • pdepend
  • phpmd
  • phpunit
  • phpcs / phpcbf

Installation:

This package should be installed via composer, which takes care of loading dependencies appropriate for your build.

composer require bitwasp/testing-php

or add it to your composer.json:

    "require": {
        "bitwasp/testing-php": "@stable"
    }
...

Usage:

Build targets can be run by calling: phing <target> Review build.xml for the targets you can run against your code.

Import this build script:

The simplest way to get started is to import this projects build.xml file in your own build.xml. The only thing you need to change here is YOUR-PACKAGE-NAME. The rest of the file simply configures the binary tools directory, which you must change if you keep them somewhere other than the composer default (vendor/bin) The builddir should be kept the same.

<?xml version="1.0" encoding="UTF-8"?>

<project name="YOUR-PACKAGE-NAME" default="build">

    <property name="toolsdir" value="${project.basedir}/vendor/bin"/>
    <property name="builddir" value="${project.basedir}/build/"/>

    <import file="vendor/bitwasp/testing-php/build.xml" />
</project>

Or roll your own:

Refer to the build.xml, or the documentation of the respective tools. You can import the default build.xml and extend it with your own functionality as required, or take whatever interests you.

About

Composer package for PHP unit testing tools, using Phing for Jenkins or local development

Resources

License

Stars

Watchers

Forks

Packages

No packages published