update tests to reflect changes in phpunit 6.0

This commit is contained in:
Emanuil Rusev 2017-03-23 20:21:05 +02:00
parent 3fc442b078
commit 0a09d5ad45
3 changed files with 7 additions and 3 deletions

View File

@ -8,7 +8,7 @@
* @link http://commonmark.org/ CommonMark * @link http://commonmark.org/ CommonMark
* @link http://git.io/8WtRvQ JavaScript test runner * @link http://git.io/8WtRvQ JavaScript test runner
*/ */
class CommonMarkTest extends PHPUnit_Framework_TestCase class CommonMarkTest extends \PHPUnit\Framework\TestCase
{ {
const SPEC_URL = 'https://raw.githubusercontent.com/jgm/stmd/master/spec.txt'; const SPEC_URL = 'https://raw.githubusercontent.com/jgm/stmd/master/spec.txt';

View File

@ -1,6 +1,6 @@
<?php <?php
class ParsedownTest extends PHPUnit_Framework_TestCase class ParsedownTest extends \PHPUnit\Framework\TestCase
{ {
final function __construct($name = null, array $data = array(), $dataName = '') final function __construct($name = null, array $data = array(), $dataName = '')
{ {

View File

@ -1,3 +1,7 @@
<?php <?php
include 'Parsedown.php'; include 'Parsedown.php';
if ( ! class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit_Framework_TestCase')) {
class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase');
}