Skip to content

Commit 8c4ad63

Browse files
committed
UnitTest suite + TravisCI + Images status
I've added a phpunit suite, and a travis config and some images that show the status of project.
1 parent ad9a2c2 commit 8c4ad63

File tree

4 files changed

+47
-2
lines changed

4 files changed

+47
-2
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
8+
before_script:
9+
- wget http://getcomposer.org/composer.phar
10+
- php composer.phar install
11+
12+
script: phpunit --coverage-text

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## FLUX (Fluent Regex) 0.5.1 (Stable)
22
*by* [Selvin Ortiz](http://twitter.com/selvinortiz)
3+
[![Build Status](https://travis-ci.org/selvinortiz/flux.png)](https://travis-ci.orgselvinortiz/flux)
4+
[![Total Downloads](https://poser.pugx.org/selvinortiz/flux/d/total.png)](https://packagist.org/packages/selvinortiz/flux)
5+
[![Latest Stable Version](https://poser.pugx.org/selvinortiz/flux/v/stable.png)](https://packagist.org/packages/selvinortiz/flux)
6+
37

48
### Description
59
Fluent Regular Expressions _in_ PHP inspired by and largely based on

phpunit.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<phpunit backupGlobals="false"
4+
backupStaticAttributes="false"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="true"
12+
bootstrap="vendor/autoload.php"
13+
>
14+
15+
<testsuites>
16+
<testsuite name="Flux Test Suite">
17+
<directory>./tests/</directory>
18+
</testsuite>
19+
</testsuites>
20+
21+
<filter>
22+
<whitelist>
23+
<directory>./</directory>
24+
<exclude>
25+
<directory>./tests</directory>
26+
<directory>./vendor</directory>
27+
<directory>./etc</directory>
28+
</exclude>
29+
</whitelist>
30+
</filter>
31+
</phpunit>

tests/FluxTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<?php
2-
require_once realpath(__DIR__.'/../vendor/autoload.php');
3-
42
use SelvinOrtiz\Utils\Flux\Flux;
53

64
class FluxTest extends PHPUnit_Framework_TestCase

0 commit comments

Comments
 (0)