forked from directus/v8-archive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update code/tests and mocking to phpunit 5
- Loading branch information
1 parent
307b413
commit 3d5e2ed
Showing
64 changed files
with
2,153 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Ignore configuration files | ||
api/config.php | ||
api/configuration.php | ||
|
||
documents | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
$configFilePath = API_PATH . '/config.php'; | ||
|
||
// Creates a simple endpoint to test the server rewriting | ||
// If the server responds "pong" it means the rewriting works | ||
if (!file_exists($configFilePath)) { | ||
return create_ping_server(); | ||
} | ||
|
||
return new \Directus\Application\Application(realpath(__DIR__ . '/../../'), require $configFilePath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.