Browse Source

Починка тестов и апгрейд

master
Alexander Yakovlev 1 year ago
parent
commit
348100b102
Signed by: oreolek GPG Key ID: 1CDC4B7820C93BD3
6 changed files with 298 additions and 259 deletions
  1. +1
    -2
      composer.json
  2. +286
    -245
      composer.lock
  3. +3
    -3
      tests/AnivisualTest.php
  4. +2
    -3
      tests/BaseTest.php
  5. +3
    -3
      tests/ItchTest.php
  6. +3
    -3
      tests/QspTest.php

+ 1
- 2
composer.json View File

@ -1,5 +1,4 @@
{
"minimum-stability": "dev",
"require": {
"sabre/xml": "^2.0",
"addwiki/mediawiki-api": "^0.7.2",
@ -13,7 +12,7 @@
"jaxl/jaxl": "^3.1@dev"
},
"require-dev": {
"phpunit/phpunit": "^7.4@dev"
"phpunit/phpunit": "^8.0"
},
"scripts": {
"test": "./vendor/bin/phpunit"

+ 286
- 245
composer.lock
File diff suppressed because it is too large
View File


+ 3
- 3
tests/AnivisualTest.php View File

@ -18,12 +18,12 @@
*/
require_once 'BaseTest.php';
require_once 'Source/Anivisual.php';
use Oreolek\Source\Anivisual;
class AnivisualTest extends BaseTest
{
protected function setUp() {
$this->parser = new Source\Anivisual();
protected function setUp(): void {
$this->parser = new Anivisual();
}
public function testPageCheck()
{

+ 2
- 3
tests/BaseTest.php View File

@ -18,10 +18,9 @@
*/
require_once 'vendor/autoload.php';
require_once 'Game.php';
require_once 'Source.php';
require_once 'Source/Itch.php';
use PHPUnit\Framework\TestCase;
use Oreolek\Game;
use Oreolek\Source;
abstract class BaseTest extends TestCase
{

+ 3
- 3
tests/ItchTest.php View File

@ -18,12 +18,12 @@
*/
require_once 'BaseTest.php';
require_once 'Source/Itch.php';
use Oreolek\Source\Itch;
class ItchTest extends BaseTest
{
protected function setUp() {
$this->parser = new Source\Itch();
protected function setUp(): void {
$this->parser = new Itch();
}
public function testPageCheck()
{

+ 3
- 3
tests/QspTest.php View File

@ -18,12 +18,12 @@
*/
require_once 'BaseTest.php';
require_once 'Source/Qsp.php';
use Oreolek\Source\Qsp;
class QspTest extends BaseTest
{
protected function setUp() {
$this->parser = new Source\Qsp();
protected function setUp(): void {
$this->parser = new Qsp();
}
public function testPageCheck()
{