Skip to content

Commit

Permalink
drop php 5.6/7.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemorroj committed Nov 29, 2019
1 parent 919746b commit 201b753
Show file tree
Hide file tree
Showing 36 changed files with 40 additions and 41 deletions.
4 changes: 2 additions & 2 deletions .php_cs.dist
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ return PhpCsFixer\Config::create()
'array_syntax' => ['syntax' => 'short'],
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
// 'compact_nullable_typehint' => true,
'compact_nullable_typehint' => true,
'linebreak_after_opening_tag' => true,
// 'list_syntax' => ['syntax' => 'short'],
'list_syntax' => ['syntax' => 'short'],
// 'mb_str_functions' => true,
'native_function_invocation' => true,
'no_null_property_initialization' => true,
Expand Down
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly

matrix:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ echo $xbbcode->getHtml();
```

### Requirements:
- PHP >= 5.6
- PHP >= 7.1.3


### Installation:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"keywords": ["xbbcode","bbcode"],
"license": "GPL-2.0-or-later",
"require": {
"php": ">=5.6",
"php": "^7.1.3",
"geshi/geshi": "^1.0.9"
},
"require-dev": {
"phpunit/phpunit": "^5.7",
"friendsofphp/php-cs-fixer": "^2.15"
"phpunit/phpunit": "^7.5",
"friendsofphp/php-cs-fixer": "^2.16"
},
"homepage": "http://xbb.uz",
"support": {
Expand Down
3 changes: 1 addition & 2 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>

<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/5.7/phpunit.xsd"
backupGlobals="false"
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/7.5/phpunit.xsd"
colors="true"
bootstrap="vendor/autoload.php"
>
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/ATest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class ATest extends \PHPUnit_Framework_TestCase
class ATest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/AbbrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class AbbrTest extends \PHPUnit_Framework_TestCase
class AbbrTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/AcronymTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class AcronymTest extends \PHPUnit_Framework_TestCase
class AcronymTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/AddressTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class AddressTest extends \PHPUnit_Framework_TestCase
class AddressTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/AlignTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class AlignTest extends \PHPUnit_Framework_TestCase
class AlignTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/AltfontTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class AltfontTest extends \PHPUnit_Framework_TestCase
class AltfontTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/BbcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class BbcodeTest extends \PHPUnit_Framework_TestCase
class BbcodeTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/BdoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class BdoTest extends \PHPUnit_Framework_TestCase
class BdoTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/BrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class BrTest extends \PHPUnit_Framework_TestCase
class BrTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/CaptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class CaptionTest extends \PHPUnit_Framework_TestCase
class CaptionTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/CodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class CodeTest extends \PHPUnit_Framework_TestCase
class CodeTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/ColorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class ColorTest extends \PHPUnit_Framework_TestCase
class ColorTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/EmailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class EmailTest extends \PHPUnit_Framework_TestCase
class EmailTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/FontTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class FontTest extends \PHPUnit_Framework_TestCase
class FontTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/GoogleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class GoogleTest extends \PHPUnit_Framework_TestCase
class GoogleTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/HrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class HrTest extends \PHPUnit_Framework_TestCase
class HrTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/ImgTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class ImgTest extends \PHPUnit_Framework_TestCase
class ImgTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/LiTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class LiTest extends \PHPUnit_Framework_TestCase
class LiTest extends \PHPUnit\Framework\TestCase
{
public function testTagWithUl()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/NobbTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class NobbTest extends \PHPUnit_Framework_TestCase
class NobbTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/OlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class OlTest extends \PHPUnit_Framework_TestCase
class OlTest extends \PHPUnit\Framework\TestCase
{
public function testTagWithoutLi()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/PTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class PTest extends \PHPUnit_Framework_TestCase
class PTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/QuoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class QuoteTest extends \PHPUnit_Framework_TestCase
class QuoteTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/SimpleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class SimpleTest extends \PHPUnit_Framework_TestCase
class SimpleTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/TableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class TableTest extends \PHPUnit_Framework_TestCase
class TableTest extends \PHPUnit\Framework\TestCase
{
public function testTagWithoutTableCells()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/TdTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class TdTest extends \PHPUnit_Framework_TestCase
class TdTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/ThTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class ThTest extends \PHPUnit_Framework_TestCase
class ThTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/TrTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class TrTest extends \PHPUnit_Framework_TestCase
class TrTest extends \PHPUnit\Framework\TestCase
{
public function testTagWithoutTdCell()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/UlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class UlTest extends \PHPUnit_Framework_TestCase
class UlTest extends \PHPUnit\Framework\TestCase
{
public function testTagWithoutLi()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/YandexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class YandexTest extends \PHPUnit_Framework_TestCase
class YandexTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Tag/YoutubeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Xbbcode\Xbbcode;

class YoutubeTest extends \PHPUnit_Framework_TestCase
class YoutubeTest extends \PHPUnit\Framework\TestCase
{
public function testTag()
{
Expand Down
3 changes: 2 additions & 1 deletion tests/XbbcodeTest.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?php
namespace Xbbcode\Tests;

use PHPUnit\Framework\TestCase;
use Xbbcode\Xbbcode;

class XbbcodeTest extends \PHPUnit_Framework_TestCase
class XbbcodeTest extends TestCase
{
public function testBase()
{
Expand Down

0 comments on commit 201b753

Please sign in to comment.