Permalink
Browse files

get tests running from composer

  • Loading branch information...
ashnazg committed Mar 6, 2017
1 parent d59b370 commit 068513d392c6e05fd7fa6de37670d20dbdbf8215
Showing with 66 additions and 42 deletions.
  1. +13 −0 .gitignore
  2. +21 −0 .travis.yml
  3. +3 −3 composer.json
  4. +29 −0 phpunit.xml.dist
  5. +0 −37 tests/AllTests.php
  6. +0 −1 tests/Net_IDNA2Test.php
  7. +0 −1 tests/draft-josefsson-idn-test-vectors.php
View
@@ -2,3 +2,16 @@
composer.lock
composer.phar
vendor
README.html
dist/
# Eclipse
.buildpath
.project
.settings
# tarballs
*.tgz
# buildtools
build/
View
@@ -0,0 +1,21 @@
language: php
sudo: false
php:
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
script:
- pear list
- pear channel-update pear.php.net
- pear upgrade pear/pear-1.10.1
- pear list
- pear install --force package.xml
- pear list
- pear package
- pear package-validate
- pear install --force *.tgz
- pear list
- composer install
- ./vendor/bin/phpunit -c phpunit.xml.dist
View
@@ -28,9 +28,9 @@
},
"type": "library",
"require": {
"pear/pear_exception": "*"
"pear/pear_exception": "@stable"
},
"require-dev": {
"phpunit/phpunit": "*"
"phpunit/phpunit": "^4"
}
}
}
View
@@ -0,0 +1,29 @@
<phpunit bootstrap="vendor/autoload.php"
cacheTokens="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false">
<testsuites>
<testsuite name="Test Suite">
<directory suffix=".php">tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">Net/</directory>
</whitelist>
</filter>
<logging>
<log type="coverage-clover" target="build/logs/clover.xml"/>
<log type="coverage-html" target="build/coverage/"/>
</logging>
</phpunit>
View

This file was deleted.

Oops, something went wrong.
View
@@ -1,6 +1,5 @@
<?php
require_once 'Net/IDNA2.php';
require_once 'PHPUnit/Framework/TestCase.php';
class Net_IDNA2Test extends PHPUnit_Framework_TestCase
{
@@ -1,6 +1,5 @@
<?php
require_once 'Net/IDNA2.php';
require_once 'PHPUnit/Framework/TestCase.php';
// Test cases from http://www.gnu.org/software/libidn/draft-josefsson-idn-test-vectors.html

0 comments on commit 068513d

Please sign in to comment.