forked from LycheeOrg/Lychee
-
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.
* tentative to see crash on php 7.3 * crash succesfully discovered
- Loading branch information
Showing
3 changed files
with
44 additions
and
26 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
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
require __DIR__ . '/bootstrap/PanicAttack.php'; | ||
|
||
$oups = new PanicAttack(); | ||
$oups->root(); | ||
$oups->root(); |
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,22 @@ | ||
<?php | ||
|
||
/** @noinspection PhpUndefinedClassInspection */ | ||
|
||
namespace Tests\Feature; | ||
|
||
use Tests\TestCase; | ||
|
||
class RootTest extends TestCase | ||
{ | ||
/** | ||
* Test album functions. | ||
* | ||
* @return void | ||
*/ | ||
public function test_root() | ||
{ | ||
exec('php index.php 2>&1', $return); | ||
$return = implode('', $return); | ||
$this->assertStringContainsString('This is the root directory and it MUST NOT BE PUBLICALLY ACCESSIBLE', $return); | ||
} | ||
} |