Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
appleple
acms-testing-framework
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
More
items
Files
Expand file tree
3.2.x
Breadcrumbs
acms-testing-framework
/
bootstrap.php
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
32 lines (29 loc) · 1.6 KB
3.2.x
Breadcrumbs
acms-testing-framework
/
bootstrap.php
Copy path
Top
File metadata and controls
Code
Blame
32 lines (29 loc) · 1.6 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* PHPUnit bootstrap エントリ(プラグイン用の共有 bootstrap)。
*
* プラグイン側は phpunit.xml で
*
* bootstrap="vendor/ablogcms/testing-framework/bootstrap.php"
*
* と指すだけでよく、各プラグインが tests/bootstrap.php を自前で持つ必要がなくなる。
* 本体パス(ACMS_ROOT)とテスト用 DB 設定は、従来どおり phpunit.xml の <env /> か
* 実行時の環境変数、もしくは本体の .env.testing から解決される(このファイルはそれらを
* 一切固定しないため、消費側の設定がそのまま効く)。
*
* vendor/bin/phpunit は起動時に消費側の vendor/autoload.php を読み込むため、通常この
* 時点で \Acms\TestingFramework\Bootstrap は既にオートロード可能。素の php で直接このファイルを
* 実行した場合などに備え、未ロード時のみパッケージ位置から消費側オートローダを読む
* (vendor/ablogcms/testing-framework/bootstrap.php → vendor/autoload.php)。
*
* 追加の初期化(フィクスチャ読み込み・独自オートロードパス登録など)が必要なプラグインは、
* 自前の tests/bootstrap.php でこのファイルを require してから拡張すればよい(このファイルの
* 置き換えではなく上乗せができる)。
*/
if (!\class_exists(\Acms\TestingFramework\Bootstrap::class)) {
$projectAutoload = __DIR__ . '/../../autoload.php';
if (\is_file($projectAutoload)) {
require_once $projectAutoload;
}
}
\Acms\TestingFramework\Bootstrap::boot();
You can’t perform that action at this time.