Skip to content

Commit

Permalink
Base PHPunit configuration.
Browse files Browse the repository at this point in the history
For users and Travis. Stops Travis from failing for now
too.
  • Loading branch information
Jukka Svahn committed Oct 23, 2013
1 parent 8c3ad9b commit 02311e5
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,2 @@
/vendor
/composer.lock
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Original file line Diff line number Diff line change
@@ -1,3 +1,4 @@
language: php language: php
php: php:
- 5.5 - 5.5
script: phpunit --configuration phpunit.xml
3 changes: 3 additions & 0 deletions composer.json
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
"require": { "require": {
"php": ">=5.3.0" "php": ">=5.3.0"
}, },
"require-dev": {
"phpunit/phpunit": "3.7.*"
},
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "3.5-dev" "dev-master": "3.5-dev"
Expand Down
8 changes: 8 additions & 0 deletions phpunit.xml
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="test/bootstrap.php">
<testsuites>
<testsuite name="Textile Test Suite">
<directory>./test/Netcarver/Textile/Test/</directory>
</testsuite>
</testsuites>
</phpunit>
11 changes: 11 additions & 0 deletions test/Netcarver/Textile/Test/BasicTest.php
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace Netcarver\Textile\Test;

class BasicTest extends \PHPUnit_Framework_TestCase
{
public function testExample()
{
$this->assertTrue(true);
}
}
7 changes: 7 additions & 0 deletions test/bootstrap.php
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

error_reporting(E_ALL);

include dirname(__DIR__) . '/src/Netcarver/Textile/Parser.php';
include dirname(__DIR__) . '/src/Netcarver/Textile/Databag.php';
include dirname(__DIR__) . '/src/Netcarver/Textile/Tag.php';

0 comments on commit 02311e5

Please sign in to comment.