Use PHPUnit\Framework\TestCase instead of PHPUnit_Framework_TestCase
Dieser Commit ist enthalten in:
Ursprung
70d15cc0ec
Commit
74ba2b301d
@ -37,7 +37,7 @@
|
||||
"justinwalsh/daux.io": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "~5",
|
||||
"phpunit/phpunit": "~5.7",
|
||||
"mikey179/vfsStream": "^1.6"
|
||||
}
|
||||
}
|
||||
|
2
composer.lock
generiert
2
composer.lock
generiert
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "9e938ead59846576154220013f069892",
|
||||
"content-hash": "efcf7514a9c5a5385f89f05c9bec4e6b",
|
||||
"packages": [
|
||||
{
|
||||
"name": "guzzlehttp/guzzle",
|
||||
|
@ -1,4 +1,5 @@
|
||||
<?php namespace Todaymade\Daux\ContentTypes\Markdown;
|
||||
<?php
|
||||
namespace Todaymade\Daux\ContentTypes\Markdown;
|
||||
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
use Todaymade\Daux\Config;
|
||||
@ -6,8 +7,9 @@ use Todaymade\Daux\Daux;
|
||||
use Todaymade\Daux\DauxHelper;
|
||||
use Todaymade\Daux\Tree\Builder;
|
||||
use Todaymade\Daux\Tree\Root;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class LinkRendererTest extends \PHPUnit_Framework_TestCase
|
||||
class LinkRendererTest extends TestCase
|
||||
{
|
||||
protected function getTree(Config $config)
|
||||
{
|
||||
|
@ -1,6 +1,9 @@
|
||||
<?php namespace Todaymade\Daux;
|
||||
<?php
|
||||
namespace Todaymade\Daux;
|
||||
|
||||
class DauxHelperTest extends \PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class DauxHelperTest extends TestCase
|
||||
{
|
||||
public function providerGetFilenames()
|
||||
{
|
||||
|
@ -1,7 +1,9 @@
|
||||
<?php
|
||||
namespace Todaymade\Daux\Format\Confluence;
|
||||
|
||||
class ApiTest extends \PHPUnit_Framework_TestCase
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ApiTest extends TestCase
|
||||
{
|
||||
// this test supports upgrade Guzzle to version 6
|
||||
public function testClientOptions()
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?php namespace Todaymade\Daux\Format\HTML;
|
||||
<?php
|
||||
namespace Todaymade\Daux\Format\HTML;
|
||||
|
||||
use Todaymade\Daux\Config as MainConfig;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ConfigTest extends \PHPUnit_Framework_TestCase
|
||||
class ConfigTest extends TestCase
|
||||
{
|
||||
function testHTMLConfigCreation() {
|
||||
$config = new MainConfig(['html' => ['edit_on' => 'test']]);
|
||||
|
@ -1,9 +1,11 @@
|
||||
<?php namespace Todaymade\Daux\Format\HTML;
|
||||
<?php
|
||||
namespace Todaymade\Daux\Format\HTML;
|
||||
|
||||
use Todaymade\Daux\Config as MainConfig;
|
||||
use \Todaymade\Daux\Format\HTML\ContentTypes\Markdown\CommonMarkConverter;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class TableOfContentsTest extends \PHPUnit_Framework_TestCase
|
||||
class TableOfContentsTest extends TestCase
|
||||
{
|
||||
function testNoTOCByDefault() {
|
||||
$converter = new CommonMarkConverter(['daux' => new MainConfig]);
|
||||
@ -87,5 +89,3 @@ EXPECTED;
|
||||
$this->assertEquals($expected, $converter->convertToHtml($source));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1,11 +1,13 @@
|
||||
<?php namespace Todaymade\Daux\Tree;
|
||||
<?php
|
||||
namespace Todaymade\Daux\Tree;
|
||||
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
use org\bovigo\vfs\vfsStreamDirectory;
|
||||
use Todaymade\Daux\Config;
|
||||
use Todaymade\Daux\Daux;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class BuilderIntegrationTest extends \PHPUnit_Framework_TestCase
|
||||
class BuilderIntegrationTest extends TestCase
|
||||
{
|
||||
/**
|
||||
* @var vfsStreamDirectory
|
||||
|
@ -1,9 +1,11 @@
|
||||
<?php namespace Todaymade\Daux\Tree;
|
||||
<?php
|
||||
namespace Todaymade\Daux\Tree;
|
||||
|
||||
use Todaymade\Daux\Config;
|
||||
use Todaymade\Daux\Daux;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class BuilderTest extends \PHPUnit_Framework_TestCase
|
||||
class BuilderTest extends TestCase
|
||||
{
|
||||
public function providerRemoveSorting()
|
||||
{
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?php namespace Todaymade\Daux\Tree;
|
||||
<?php
|
||||
namespace Todaymade\Daux\Tree;
|
||||
|
||||
use Todaymade\Daux\Config;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class ContentTest extends \PHPUnit_Framework_TestCase
|
||||
class ContentTest extends TestCase
|
||||
{
|
||||
protected function createContent($content)
|
||||
{
|
||||
|
@ -1,8 +1,10 @@
|
||||
<?php namespace Todaymade\Daux\Tree;
|
||||
<?php
|
||||
namespace Todaymade\Daux\Tree;
|
||||
|
||||
use Todaymade\Daux\Config;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
class DirectoryTest extends \PHPUnit_Framework_TestCase
|
||||
class DirectoryTest extends TestCase
|
||||
{
|
||||
public function providerSort()
|
||||
{
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren