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:
parent
33a23fbfb2
commit
73dbe2fd17
@ -13,3 +13,6 @@ matrix:
|
||||
fast_finish: true
|
||||
allow_failures:
|
||||
- php: hhvm-nightly
|
||||
|
||||
install:
|
||||
- composer install
|
||||
|
@ -17,5 +17,13 @@
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {"Parsedown": ""}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-0": {
|
||||
"TestParsedown": "test/",
|
||||
"ParsedownTest": "test/",
|
||||
"CommonMarkTest": "test/",
|
||||
"CommonMarkTestWeak": "test/"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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');
|
||||
}
|
Loading…
Reference in New Issue
Block a user