Permalink
Browse files

Added icecave/testing [fixes #4]

  • Loading branch information...
1 parent f8c23b6 commit 362810960f01360c30a0c2228978f6179afce5a0 @jmalloc jmalloc committed Jan 24, 2013
Showing with 473 additions and 111 deletions.
  1. +0 −2 .gitattributes
  2. +19 −6 .travis.yml
  3. +4 −3 README.md
  4. +2 −0 composer.json
  5. +448 −14 composer.lock
  6. +0 −64 phpunit.reports.xml
  7. +0 −17 phpunit.xml
  8. +0 −5 test/bootstrap.php
View
2 .gitattributes
@@ -1,6 +1,4 @@
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
-phpunit.xml export-ignore
-phpunit.reports.xml export-ignore
test export-ignore
View
25 .travis.yml
@@ -1,8 +1,21 @@
language: php
-before_script:
- - composer install --dev
-script: phpunit
+
php:
- - 5.3.3
- - 5.3
- - 5.4
+ - 5.3.3
+ - 5.3
+ - 5.4
+ - 5.5
+
+matrix:
+ # Use PHP 5.4 for coverage reporting.
+ include:
+ - php: 5.4
+ env:
+ - secure: "VOZmmomPHdfqVgnoWPpIcgtU0+sf/sZQ7PqzQsvkKIyAH63K+f1UupuBNDtI\nfF2OjDuZ2p+8OumKPvivPJeaWWLaBirLkmxQCg7oaT5TrrWwoTFYC+5Vc384\nhlImS4tbHr0NxlWNFkaeQMqe9WGibP6WOy7tJOuibaSGCObr8Xk="
+
+ # PHP 5.5 is still in alpha, so ignore build failures.
+ allow_failures:
+ - php: 5.5
+
+install: composer install --dev --prefer-source
+script: ./vendor/bin/travis-build
View
7 README.md
@@ -1,17 +1,18 @@
# Mephisto
-[![Build Status](https://secure.travis-ci.org/IcecaveStudios/mephisto.png)](http://travis-ci.org/IcecaveStudios/mephisto)
+[![Build Status](https://api.travis-ci.org/IcecaveStudios/mephisto.png)](http://travis-ci.org/IcecaveStudios/mephisto)
+[![Test Coverage](http://icecave.com.au/mephisto/coverage-report/coverage.png)](http://icecave.com.au/mephisto/coverage-report/index.html)
**Mephisto** is a process management library for PHP. It includes some basic features for communicating between processes (IPC), launching new processes as well as features for easing the development of system daemons.
## Installation
-**Mephisto** requires PHP 5.3, and the *posix* and *pcntl* PHP extensions, and as such requires a POSIX compliant operating system (ie, not Microsoft Windows).
+**Mephisto** requires PHP 5.3.3 or later, and the *posix* and *pcntl* PHP extensions, and as such requires a POSIX compliant operating system (ie, not Microsoft Windows).
### With [Composer](http://getcomposer.org/)
* Add 'icecave/mephisto' to the project's composer.json dependencies
-* Run `php composer.phar install`
+* Run `composer install`
### Bare installation
View
2 composer.json
@@ -21,6 +21,8 @@
},
"require-dev": {
"phake/phake": "1.*",
+ "icecave/testing": "2.*",
+ "icecave/woodhouse": "*",
"eloquent/liberator": ">=1.1.0,<2.0.0"
},
"autoload": {
View
462 composer.lock
@@ -1,33 +1,467 @@
{
- "hash": "3b584bab468a71c59cf1e4e6c5cae6ce",
+ "hash": "38dc1b50258a09879f8494973221a708",
"packages": [
{
- "package": "eloquent/enumeration",
- "version": "3.0.1"
+ "name": "eloquent/enumeration",
+ "version": "3.0.1",
+ "source": {
+ "type": "git",
+ "url": "git://github.com/eloquent/enumeration.git",
+ "reference": "3.0.1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/eloquent/enumeration/zipball/3.0.1",
+ "reference": "3.0.1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phake/phake": "1.*"
+ },
+ "time": "2012-08-20 22:21:14",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Eloquent\\Enumeration": "src"
+ }
+ }
},
{
- "package": "icecave/forge",
+ "name": "icecave/forge",
"version": "dev-master",
- "source-reference": "d1ab4e7e636f9a75e498957a0743778efa813e72",
- "commit-date": "1348095459"
+ "source": {
+ "type": "git",
+ "url": "https://github.com/IcecaveStudios/forge.git",
+ "reference": "4202912129d69b3229cac4f000e24dba18b848a7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/IcecaveStudios/forge/archive/4202912129d69b3229cac4f000e24dba18b848a7.zip",
+ "reference": "4202912129d69b3229cac4f000e24dba18b848a7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "phake/phake": "1.*",
+ "eloquent/liberator": ">=1.1.0,<2.0.0",
+ "icecave/testing": "2.*",
+ "icecave/woodhouse": "*"
+ },
+ "time": "2013-01-24 11:51:23",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Icecave\\Forge": "lib"
+ }
+ },
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "James Harris",
+ "email": "james.harris@icecave.com.au"
+ }
+ ],
+ "description": "Simple abstractions of common creational patterns.",
+ "homepage": "https://github.com/IcecaveStudios/forge",
+ "keywords": [
+ "pattern",
+ "design",
+ "builder",
+ "factory",
+ "prototype",
+ "creation",
+ "creational",
+ "construction",
+ "constructor"
+ ]
},
{
- "package": "icecave/isolator",
- "version": "2.1.0"
+ "name": "icecave/isolator",
+ "version": "2.1.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/IcecaveStudios/isolator.git",
+ "reference": "2.1.1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/IcecaveStudios/isolator/archive/2.1.1.zip",
+ "reference": "2.1.1",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "icecave/testing": "1.*"
+ },
+ "time": "2013-01-14 04:17:36",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Icecave\\Isolator": "lib"
+ }
+ },
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "James Harris",
+ "email": "james.harris@icecave.com.au"
+ }
+ ],
+ "description": "Mock out calls to built-in PHP functions.",
+ "homepage": "https://github.com/IcecaveStudios/isolator",
+ "keywords": [
+ "phpunit",
+ "test",
+ "mock",
+ "fake",
+ "unit",
+ "phake"
+ ]
}
],
"packages-dev": [
{
- "package": "eloquent/liberator",
- "version": "1.1.0"
+ "name": "eloquent/asplode",
+ "version": "1.0.4",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/eloquent/asplode.git",
+ "reference": "1.0.4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/eloquent/asplode/zipball/1.0.4",
+ "reference": "1.0.4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0",
+ "icecave/isolator": "2.*"
+ },
+ "require-dev": {
+ "phake/phake": "1.*"
+ },
+ "time": "2012-08-05 18:24:33",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Eloquent\\Asplode": "src"
+ }
+ },
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Erin Millard",
+ "email": "ezzatron@gmail.com",
+ "homepage": "http://ezzatron.com/"
+ }
+ ],
+ "description": "Drop-in exception-based error handling for PHP.",
+ "homepage": "https://github.com/eloquent/asplode",
+ "keywords": [
+ "exception",
+ "error",
+ "handling",
+ "handler",
+ "errorexception",
+ "fault",
+ "failure"
+ ]
},
{
- "package": "eloquent/pops",
- "version": "3.1.0"
+ "name": "eloquent/liberator",
+ "version": "1.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/eloquent/liberator.git",
+ "reference": "1.1.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/eloquent/liberator/zipball/1.1.0",
+ "reference": "1.1.0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0",
+ "eloquent/pops": "3.*"
+ },
+ "time": "2012-08-02 13:30:51",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Eloquent\\Liberator": "src"
+ }
+ }
},
{
- "package": "phake/phake",
- "version": "v1.0.3"
+ "name": "eloquent/pops",
+ "version": "3.1.0",
+ "source": {
+ "type": "git",
+ "url": "git://github.com/eloquent/pops.git",
+ "reference": "3.1.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/eloquent/pops/zipball/3.1.0",
+ "reference": "3.1.0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "time": "2012-08-02 13:17:58",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Eloquent\\Pops": "src"
+ }
+ }
+ },
+ {
+ "name": "ezzatron/ci-status-images",
+ "version": "1.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/ezzatron/ci-status-images.git",
+ "reference": "1.2.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/ezzatron/ci-status-images/archive/1.2.0.zip",
+ "reference": "1.2.0",
+ "shasum": ""
+ },
+ "time": "2013-01-18 05:57:45",
+ "type": "library",
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Erin Millard",
+ "email": "ezzatron@gmail.com",
+ "homepage": "http://ezzatron.com/"
+ }
+ ],
+ "description": "Test coverage percentage and other useful status images for continuous integration systems.",
+ "homepage": "https://github.com/ezzatron/ci-status-images",
+ "keywords": [
+ "image",
+ "github",
+ "ci",
+ "travis",
+ "integration",
+ "continuous",
+ "status",
+ "icon",
+ "button",
+ "label"
+ ]
+ },
+ {
+ "name": "icecave/testing",
+ "version": "2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/IcecaveStudios/testing.git",
+ "reference": "2.0.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/IcecaveStudios/testing/archive/2.0.0.zip",
+ "reference": "2.0.0",
+ "shasum": ""
+ },
+ "require": {
+ "phake/phake": "1.*"
+ },
+ "suggest": {
+ "eloquent/asplode": "Use the asplode error handler instead of PHPUnit's internal error handler.",
+ "eloquent/liberator": "Use liberator for circumventing PHP access modifier restrictions inside tests.",
+ "icecave/woodhouse": "Publish your code coverage information to GitHub pages."
+ },
+ "time": "2013-01-19 14:28:21",
+ "bin": [
+ "bin/phpunit",
+ "bin/phpunit-coverage",
+ "bin/travis-init",
+ "bin/travis-build"
+ ],
+ "type": "library",
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "James Harris",
+ "email": "james.harris@icecave.com.au"
+ }
+ ],
+ "description": "Helper package for testing Icecave projects in a uniform way.",
+ "homepage": "https://github.com/IcecaveStudios/testing",
+ "keywords": [
+ "testing",
+ "phpunit",
+ "test",
+ "unit",
+ "phake",
+ "coverage"
+ ]
+ },
+ {
+ "name": "icecave/woodhouse",
+ "version": "0.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/IcecaveStudios/woodhouse.git",
+ "reference": "0.2.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/IcecaveStudios/woodhouse/archive/0.2.0.zip",
+ "reference": "0.2.0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3",
+ "eloquent/asplode": "1.*",
+ "ezzatron/ci-status-images": "1.*",
+ "icecave/isolator": "2.*",
+ "symfony/console": "2.*"
+ },
+ "require-dev": {
+ "eloquent/typhoon": "0.6.*",
+ "eloquent/liberator": "1.*",
+ "icecave/testing": "1.*"
+ },
+ "time": "2013-01-19 14:03:15",
+ "bin": [
+ "bin/woodhouse"
+ ],
+ "type": "library",
+ "extra": {
+ "typhoon": {
+ "output-path": "lib-typhoon",
+ "validator-namespace": "Icecave\\Woodhouse\\TypeCheck",
+ "use-native-callable": false
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Icecave\\Woodhouse": "lib",
+ "Icecave\\Woodhouse\\TypeCheck": "lib-typhoon"
+ }
+ },
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "James Harris",
+ "email": "james.harris@icecave.com.au"
+ }
+ ],
+ "description": "Publish your PHPUnit code coverage reports on your GitHub pages.",
+ "homepage": "https://github.com/IcecaveStudios/collections",
+ "keywords": [
+ "phpunit",
+ "code",
+ "github",
+ "Xdebug",
+ "publish",
+ "pages",
+ "coverage"
+ ]
+ },
+ {
+ "name": "phake/phake",
+ "version": "v1.0.3",
+ "source": {
+ "type": "git",
+ "url": "git://github.com/mlively/Phake.git",
+ "reference": "v1.0.3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/mlively/Phake/zipball/v1.0.3",
+ "reference": "v1.0.3",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.2.0"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src"
+ ]
+ },
+ "include-path": [
+ "src"
+ ]
+ },
+ {
+ "name": "symfony/console",
+ "version": "v2.1.7",
+ "target-dir": "Symfony/Component/Console",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/Console",
+ "reference": "v2.1.7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/symfony/Console/archive/v2.1.7.zip",
+ "reference": "v2.1.7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "time": "2013-01-17 15:20:05",
+ "type": "library",
+ "autoload": {
+ "psr-0": {
+ "Symfony\\Component\\Console": ""
+ }
+ },
+ "notification-url": "http://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Fabien Potencier",
+ "email": "fabien@symfony.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "http://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony Console Component",
+ "homepage": "http://symfony.com"
}
],
"aliases": [
View
64 phpunit.reports.xml
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit
- bootstrap="test/bootstrap.php"
- strict="true"
- mapTestClassNameToCoveredClassName="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- verbose="true"
- colors="true"
->
- <testsuites>
- <testsuite>
- <directory>test/suite</directory>
- </testsuite>
- </testsuites>
-
- <logging>
- <log
- type="coverage-clover"
- target="test/report/coverage.xml"
- />
-
- <log
- type="coverage-html"
- target="test/report/coverage"
- charset="UTF-8"
- yui="true"
- highlight="true"
- />
-
- <log
- type="json"
- target="test/report/logfile.json"
- />
-
- <log
- type="tap"
- target="test/report/logfile.tap"
- />
-
- <log
- type="junit"
- target="test/report/logfile.xml"
- logIncompleteSkipped="false"
- />
-
- <log
- type="testdox-html"
- target="test/report/testdox.html"
- />
-
- <log
- type="testdox-text"
- target="test/report/testdox.txt"
- />
- </logging>
-
- <filter>
- <whitelist>
- <directory>lib</directory>
- </whitelist>
- </filter>
-</phpunit>
View
17 phpunit.xml
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<phpunit
- bootstrap="test/bootstrap.php"
- strict="true"
- mapTestClassNameToCoveredClassName="true"
- convertErrorsToExceptions="true"
- convertNoticesToExceptions="true"
- convertWarningsToExceptions="true"
- verbose="true"
- colors="true"
->
- <testsuites>
- <testsuite>
- <directory>test/suite</directory>
- </testsuite>
- </testsuites>
-</phpunit>
View
5 test/bootstrap.php
@@ -1,5 +0,0 @@
-<?php
-
-require __DIR__.'/../vendor/autoload.php';
-
-Phake::setClient(Phake::CLIENT_PHPUNIT);

0 comments on commit 3628109

Please sign in to comment.