Skip to content

Commit

Permalink
[TASK] Extend test cases
Browse files Browse the repository at this point in the history
Resolves: #44
  • Loading branch information
ohader committed May 14, 2019
1 parent 0153602 commit 057622f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Functional/Interceptor/ConjunctionInterceptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __construct($name = null, array $data = array(), $dataName = '')
{
$this->allowedPaths = array(
__DIR__ . '/../Fixtures/bundle.phar',
__DIR__ . '/../Fixtures/Source/../bundle.phar',
);
$this->allowedAliasedPaths = array(
__DIR__ . '/../Fixtures/geoip2.phar',
Expand All @@ -41,6 +42,9 @@ public function __construct($name = null, array $data = array(), $dataName = '')
__DIR__ . '/../Fixtures/compromised.phar.png',
__DIR__ . '/../Fixtures/compromised.phar.gz.png',
__DIR__ . '/../Fixtures/compromised.phar.bz2.png',
__DIR__ . '/../Fixtures/bundle.phar.png/../bundle.phar',
__DIR__ . '/../Fixtures/compromised.phar/../bundle.phar',
__DIR__ . '/../Fixtures/compromised.phar.png/../bundle.phar',
);
parent::__construct($name, $data, $dataName);
}
Expand Down
3 changes: 3 additions & 0 deletions tests/Functional/Interceptor/PharExtensionInterceptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct($name = null, array $data = array(), $dataName = '')
{
$this->allowedPaths = array(
__DIR__ . '/../Fixtures/bundle.phar',
__DIR__ . '/../Fixtures/Source/../bundle.phar',
);
$this->allowedAliasedPaths = array(
__DIR__ . '/../Fixtures/geoip2.phar',
Expand All @@ -35,6 +36,8 @@ public function __construct($name = null, array $data = array(), $dataName = '')
$this->deniedPaths = array(
__DIR__ . '/../Fixtures/bundle.phar.png',
__DIR__ . '/../Fixtures/compromised.phar.png',
__DIR__ . '/../Fixtures/bundle.phar.png/../bundle.phar',
__DIR__ . '/../Fixtures/compromised.phar.png/../bundle.phar',
);
parent::__construct($name, $data, $dataName);
}
Expand Down
2 changes: 2 additions & 0 deletions tests/Functional/Interceptor/PharMetaDataInterceptorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct($name = null, array $data = array(), $dataName = '')
$this->allowedPaths = array(
__DIR__ . '/../Fixtures/bundle.phar',
__DIR__ . '/../Fixtures/bundle.phar.png',
__DIR__ . '/../Fixtures/Source/../bundle.phar',
);
$this->allowedAliasedPaths = array(
__DIR__ . '/../Fixtures/geoip2.phar',
Expand All @@ -39,6 +40,7 @@ public function __construct($name = null, array $data = array(), $dataName = '')
__DIR__ . '/../Fixtures/compromised.phar.png',
__DIR__ . '/../Fixtures/compromised.phar.gz.png',
__DIR__ . '/../Fixtures/compromised.phar.bz2.png',
__DIR__ . '/../Fixtures/compromised.phar/../bundle.phar',
);
parent::__construct($name, $data, $dataName);
}
Expand Down

0 comments on commit 057622f

Please sign in to comment.