1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00

Remove PHPUnit bootstrap in favour of composer

This commit is contained in:
Daniel Rudolf 2016-09-05 22:04:46 +02:00
parent 33a23fbfb2
commit 73dbe2fd17
No known key found for this signature in database
GPG Key ID: A061F02CD8DE4538
4 changed files with 13 additions and 19 deletions

View File

@ -13,3 +13,6 @@ matrix:
fast_finish: true
allow_failures:
- php: hhvm-nightly
install:
- composer install

View File

@ -17,5 +17,13 @@
},
"autoload": {
"psr-0": {"Parsedown": ""}
},
"autoload-dev": {
"psr-0": {
"TestParsedown": "test/",
"ParsedownTest": "test/",
"CommonMarkTest": "test/",
"CommonMarkTestWeak": "test/"
}
}
}

View File

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="test/bootstrap.php" colors="true">
<phpunit bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite>
<file>test/ParsedownTest.php</file>

View File

@ -1,17 +0,0 @@
<?php
// prepare composer autoloader
if (is_file(__DIR__ . '/../vendor/autoload.php')) {
// composer root package
require_once(__DIR__ . '/../vendor/autoload.php');
} elseif (is_file(__DIR__ . '/../../../../vendor/autoload.php')) {
// composer dependency package
require_once(__DIR__ . '/../../../../vendor/autoload.php');
} else {
die("Cannot find `vendor/autoload.php`. Run `composer install`.");
}
// load TestParsedown class
if (!class_exists('TestParsedown', false) && is_file('test/TestParsedown.php')) {
require_once('test/TestParsedown.php');
}