Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,11 @@ public function add_block_from_stack( $end_offset = null ) {
*
* Required for backward compatibility in WordPress Core.
*/
require_once __DIR__ . '/class-wp-block-parser-block.php';
require_once __DIR__ . '/class-wpblockparserblock.php';

/**
* WP_Block_Parser_Frame class.
*
* Required for backward compatibility in WordPress Core.
*/
require_once __DIR__ . '/class-wp-block-parser-frame.php';
require_once __DIR__ . '/class-wpblockparserframe.php';
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/CpStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use WordPress\Blueprints\Steps\CpStep;
use WordPress\Filesystem\FilesystemException;

require_once __DIR__ . '/StepTestCase.php';

class CpStepTest extends StepTestCase {
public function testCopyFile() {
$this->runtime->getTargetFilesystem()->put_contents( 'source_file.txt', 'test content' );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use WordPress\Blueprints\Progress\Tracker;
use WordPress\Blueprints\Steps\DefineConstantsStep;

require_once __DIR__ . '/StepTestCase.php';

class DefineConstantsStepTest extends StepTestCase {
/**
* Test updating existing constants
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use WordPress\Blueprints\Progress\Tracker;
use WordPress\Blueprints\Steps\EnableMultisiteStep;

require_once __DIR__ . '/StepTestCase.php';

class EnableMultisiteStepTest extends StepTestCase {
public function setUp(): void {
parent::setUp();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

use function WordPress\Filesystem\wp_join_unix_paths;

require_once __DIR__ . '/StepTestCase.php';

class InstallPluginStepTest extends StepTestCase {
const PLUGIN_FILE_CONTENT = <<<'PHP'
<?php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

use function WordPress\Filesystem\wp_join_unix_paths;

require_once __DIR__ . '/StepTestCase.php';

class InstallThemeStepTest extends StepTestCase {
const THEME_STYLE_CSS_CONTENT = <<<'CSS'
/*
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/MkdirStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use WordPress\Blueprints\Steps\MkdirStep;
use WordPress\Filesystem\FilesystemException;

require_once __DIR__ . '/StepTestCase.php';

class MkdirStepTest extends StepTestCase {

public function testCreateDirectoryWhenUsingRelativePath() {
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/MvStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use WordPress\Blueprints\Steps\MvStep;
use WordPress\Filesystem\FilesystemException;

require_once __DIR__ . '/StepTestCase.php';

class MvStepTest extends StepTestCase {

public function testMoveFile() {
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/RmDirStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use WordPress\Blueprints\Steps\RmDirStep;
use WordPress\Filesystem\FilesystemException;

require_once __DIR__ . '/StepTestCase.php';

class RmDirStepTest extends StepTestCase {

public function testRemoveEmptyDirectory() {
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/RmStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use WordPress\Blueprints\Steps\RmStep;
use WordPress\Filesystem\FilesystemException;

require_once __DIR__ . '/StepTestCase.php';

class RmStepTest extends StepTestCase {

public function testRemoveFile() {
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/RunPHPStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

use function WordPress\Filesystem\wp_join_unix_paths;

require_once __DIR__ . '/StepTestCase.php';

class RunPHPStepTest extends StepTestCase {

/**
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/RunSQLStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use WordPress\Blueprints\Progress\Tracker;
use WordPress\Blueprints\Steps\RunSqlStep;

require_once __DIR__ . '/StepTestCase.php';

class RunSQLStepTest extends StepTestCase {
/**
* Test running a simple SQL query
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use WordPress\Blueprints\Progress\Tracker;
use WordPress\Blueprints\Steps\SetSiteOptionsStep;

require_once __DIR__ . '/StepTestCase.php';

class SetSiteOptionsStepTest extends StepTestCase {
/**
* Helper to verify options in WordPress
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/UnzipStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

use function WordPress\Filesystem\wp_join_unix_paths;

require_once __DIR__ . '/StepTestCase.php';

class UnzipStepTest extends StepTestCase {

public function setUp(): void {
Expand Down
2 changes: 2 additions & 0 deletions components/Blueprints/Tests/Unit/Steps/WriteFilesStepTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
use WordPress\Blueprints\Progress\Tracker;
use WordPress\Blueprints\Steps\WriteFilesStep;

require_once __DIR__ . '/StepTestCase.php';

class WriteFilesStepTest extends StepTestCase {
/**
* Test writing a file with string data
Expand Down
6 changes: 3 additions & 3 deletions components/ByteStream/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"php": ">=7.2"
},
"autoload": {
"psr-4": {
"WordPress\\ByteStream\\": ""
},
"classmap": [
"./"
],
"exclude-from-classmap": [
"/Tests/"
]
Expand Down
File renamed without changes.
6 changes: 1 addition & 5 deletions components/DataLiberation/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,12 @@
},
"autoload": {
"classmap": [
"./",
"vendor-patched/"
],
"files": [
"URL/functions.php"
],
"psr-4": {
"WordPress\\DataLiberation\\": "",
"Rowbot\\": "vendor-patched/",
"Brick\\": "vendor-patched/"
},
"exclude-from-classmap": [
"/Tests/"
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
use WordPress\HttpClient\Client;
use WordPress\HttpClient\Request;

require_once __DIR__ . '/WithServerTrait.php';

class CacheMiddlewareIntegrationTest extends TestCase {

use WithServerTrait;
Expand Down
2 changes: 2 additions & 0 deletions components/HttpClient/Tests/CurlTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
use WordPress\HttpClient\HttpError;
use WordPress\HttpClient\Request;

require_once __DIR__ . '/ClientTestBase.php';

class CurlTransportTest extends ClientTestBase {

public function test_unsupported_encoding() {
Expand Down
2 changes: 2 additions & 0 deletions components/HttpClient/Tests/SocketTransportTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
use WordPress\HttpClient\Client;
use WordPress\HttpClient\Request;

require_once __DIR__ . '/ClientTestBase.php';

class SocketTransportTest extends ClientTestBase {

public function test_unsupported_encoding() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions components/XML/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
"php": ">=7.2"
},
"autoload": {
"psr-4": {
"WordPress\\XML\\": ""
},
"classmap": [
"./"
],
"exclude-from-classmap": [
"/Tests/"
]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 14 additions & 13 deletions composer-ci-matrix-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,23 @@
],
"classmap": [
"components/BlockParser/",
"components/Blueprints/",
"components/Blueprints/vendor-patched/",
"components/CLI/",
"components/DataLiberation/",
"components/DataLiberation/vendor-patched/",
"components/Filesystem/",
"components/Git/",
"components/HTML/./",
"components/HttpClient/",
"components/HttpServer/",
"components/Markdown/",
"components/Markdown/vendor-patched",
"components/Merge/",
"components/Merge/vendor-patched",
"components/HTML/./"
"components/ByteStream/",
"components/XML/",
"components/Zip/"
],
"files": [
"components/DataLiberation/URL/functions.php",
Expand All @@ -52,20 +64,9 @@
"components/Git/functions.php"
],
"psr-4": {
"WordPress\\Blueprints\\": "components/Blueprints/",
"WordPress\\DataLiberation\\": "components/DataLiberation/",
"Rowbot\\": "components/DataLiberation/vendor-patched/",
"Brick\\": "components/DataLiberation/vendor-patched/",
"WordPress\\HttpClient\\": "components/HttpClient/",
"WordPress\\Merge\\": "components/Merge/",
"WordPress\\Markdown\\": "components/Markdown/",
"WordPress\\Filesystem\\": "components/Filesystem/",
"WordPress\\XML\\": "components/XML/",
"WordPress\\ByteStream\\": "components/ByteStream/",
"WordPress\\Zip\\": "components/Zip/",
"WordPress\\HttpServer\\": "components/HttpServer/",
"WordPress\\CORSProxy\\": "components/CORSProxy/",
"WordPress\\Git\\": "components/Git/"
"WordPress\\CORSProxy\\": "components/CORSProxy/"
}
},
"scripts": {
Expand Down
28 changes: 14 additions & 14 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,23 @@
],
"classmap": [
"components/BlockParser/",
"components/Blueprints/",
"components/Blueprints/vendor-patched/",
"components/CLI/",
"components/DataLiberation/",
"components/DataLiberation/vendor-patched/",
"components/Filesystem/",
"components/Git/",
"components/HTML/./",
"components/HttpClient/",
"components/HttpServer/",
"components/Markdown/",
"components/Markdown/vendor-patched",
"components/Merge/",
"components/Merge/vendor-patched",
"components/HTML/./"
"components/ByteStream/",
"components/XML/",
"components/Zip/"
],
"files": [
"components/DataLiberation/URL/functions.php",
Expand All @@ -56,21 +68,9 @@
"components/Git/functions.php"
],
"psr-4": {
"WordPress\\Blueprints\\": "components/Blueprints/",
"WordPress\\CLI\\": "components/CLI/",
"WordPress\\DataLiberation\\": "components/DataLiberation/",
"Rowbot\\": "components/DataLiberation/vendor-patched/",
"Brick\\": "components/DataLiberation/vendor-patched/",
"WordPress\\HttpClient\\": "components/HttpClient/",
"WordPress\\Merge\\": "components/Merge/",
"WordPress\\Markdown\\": "components/Markdown/",
"WordPress\\Filesystem\\": "components/Filesystem/",
"WordPress\\XML\\": "components/XML/",
"WordPress\\ByteStream\\": "components/ByteStream/",
"WordPress\\Zip\\": "components/Zip/",
"WordPress\\HttpServer\\": "components/HttpServer/",
"WordPress\\CORSProxy\\": "components/CORSProxy/",
"WordPress\\Git\\": "components/Git/"
"WordPress\\CORSProxy\\": "components/CORSProxy/"
}
},
"scripts": {
Expand Down
Loading