mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Enhancement: Split test suite (#940)
This commit is contained in:
@@ -8,7 +8,7 @@ precision=-1
|
||||
use phpweb\UserNotes\Sorter;
|
||||
use phpweb\UserNotes\UserNote;
|
||||
|
||||
require_once __DIR__ . "/../../../src/autoload.php";
|
||||
require_once __DIR__ . "/../../../../src/autoload.php";
|
||||
|
||||
$notes = [];
|
||||
|
||||
@@ -8,9 +8,9 @@ precision=-1
|
||||
use phpweb\UserNotes\Sorter;
|
||||
use phpweb\UserNotes\UserNote;
|
||||
|
||||
require_once __DIR__ . "/../../../src/autoload.php";
|
||||
require_once __DIR__ . "/../../../../src/autoload.php";
|
||||
|
||||
$file = file(__DIR__ . "/../../../backend/notes/d7/d7742c269d23ea86");
|
||||
$file = file(__DIR__ . "/../../../../backend/notes/d7/d7742c269d23ea86");
|
||||
$notes = [];
|
||||
foreach ($file as $line) {
|
||||
@list($id, $sect, $rate, $ts, $user, $note, $up, $down) = explode("|", $line);
|
||||
@@ -8,7 +8,7 @@ precision=-1
|
||||
use phpweb\UserNotes\Sorter;
|
||||
use phpweb\UserNotes\UserNote;
|
||||
|
||||
require_once __DIR__ . "/../../../src/autoload.php";
|
||||
require_once __DIR__ . "/../../../../src/autoload.php";
|
||||
|
||||
$notes = [
|
||||
new UserNote('1', '', '', '1613487094', '', '', 0, 0),
|
||||
@@ -8,7 +8,7 @@ precision=-1
|
||||
use phpweb\UserNotes\Sorter;
|
||||
use phpweb\UserNotes\UserNote;
|
||||
|
||||
require_once __DIR__ . "/../../../src/autoload.php";
|
||||
require_once __DIR__ . "/../../../../src/autoload.php";
|
||||
|
||||
$notes = [
|
||||
new UserNote('1', '', '', '1613487094', '', '', 0, 2),
|
||||
@@ -3,7 +3,7 @@ clean_AntiSPAM() removes spam terms
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../include/email-validation.inc';
|
||||
require_once __DIR__ . '/../../include/email-validation.inc';
|
||||
|
||||
$emails = array (
|
||||
'asasasd324324@php.net',
|
||||
@@ -3,7 +3,7 @@ gen_challenge() generates a spam challenge
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../manual/spam_challenge.php';
|
||||
require_once __DIR__ . '/../../manual/spam_challenge.php';
|
||||
|
||||
mt_srand(9001);
|
||||
|
||||
@@ -3,7 +3,7 @@ is_emailable_address() returns whether email is emailable
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/../include/email-validation.inc';
|
||||
require_once __DIR__ . '/../../include/email-validation.inc';
|
||||
|
||||
$emails = array(
|
||||
'asasasd324324@php.net',
|
||||
@@ -32,7 +32,10 @@
|
||||
</source>
|
||||
<testsuites>
|
||||
<testsuite name="end-to-end">
|
||||
<directory suffix=".phpt">.</directory>
|
||||
<directory suffix=".phpt">EndToEnd/</directory>
|
||||
</testsuite>
|
||||
<testsuite name="unit">
|
||||
<directory suffix=".phpt">Unit/</directory>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
</phpunit>
|
||||
|
||||
Reference in New Issue
Block a user