Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2022-07-09T11:06:08+01:00

Commit: 
https://github.com/php/web-php/commit/b9da39a6f3a475bc6d2c0ba124f7bb334c5b5243
Raw diff: 
https://github.com/php/web-php/commit/b9da39a6f3a475bc6d2c0ba124f7bb334c5b5243.diff

Fix: Move and rename tests (#628)

Changed paths:
  A  tests/UserNotes/Sorter/sort-no-notes.phpt
  A  tests/UserNotes/Sorter/sort-single-note-with-no-votes.phpt
  A  tests/UserNotes/Sorter/sort-some-notes.phpt
  D  tests/sort_notes_001.phpt
  D  tests/sort_notes_002.phpt
  D  tests/sort_notes_003.phpt


Diff:

diff --git a/tests/sort_notes_002.phpt 
b/tests/UserNotes/Sorter/sort-no-notes.phpt
similarity index 91%
rename from tests/sort_notes_002.phpt
rename to tests/UserNotes/Sorter/sort-no-notes.phpt
index 87c1fc551..de76c1c4a 100644
--- a/tests/sort_notes_002.phpt
+++ b/tests/UserNotes/Sorter/sort-no-notes.phpt
@@ -4,7 +4,7 @@ sort no notes
 precision=-1
 --FILE--
 <?php
-require_once __DIR__ . "/../autoload.php";
+require_once __DIR__ . "/../../../autoload.php";
 
 $notes = [];
 
diff --git a/tests/sort_notes_003.phpt 
b/tests/UserNotes/Sorter/sort-single-note-with-no-votes.phpt
similarity index 94%
rename from tests/sort_notes_003.phpt
rename to tests/UserNotes/Sorter/sort-single-note-with-no-votes.phpt
index 515837ef6..5a1c12594 100644
--- a/tests/sort_notes_003.phpt
+++ b/tests/UserNotes/Sorter/sort-single-note-with-no-votes.phpt
@@ -4,7 +4,7 @@ sort a single note with no votes
 precision=-1
 --FILE--
 <?php
-require_once __DIR__ . "/../autoload.php";
+require_once __DIR__ . "/../../../autoload.php";
 
 $notes = [
     [
diff --git a/tests/sort_notes_001.phpt 
b/tests/UserNotes/Sorter/sort-some-notes.phpt
similarity index 97%
rename from tests/sort_notes_001.phpt
rename to tests/UserNotes/Sorter/sort-some-notes.phpt
index ee4b88c2b..5afa348d9 100644
--- a/tests/sort_notes_001.phpt
+++ b/tests/UserNotes/Sorter/sort-some-notes.phpt
@@ -4,7 +4,7 @@ sort some notes
 precision=-1
 --FILE--
 <?php
-require_once __DIR__ . "/../autoload.php";
+require_once __DIR__ . "/../../../autoload.php";
 
 $notes = [
     [

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to