This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Joshua Moon
committed
Oct 7, 2019
1 parent
924b82e
commit 204c2ce
Showing
18 changed files
with
94 additions
and
65 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 |
---|---|---|
|
@@ -3,4 +3,5 @@ composer.phar | |
composer.lock | ||
.DS_Store | ||
Thumbs.db | ||
.idea | ||
.idea | ||
.phpunit.result.cache |
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,31 +1,35 @@ | ||
{ | ||
"name": "infinity-next/sleuth", | ||
"keywords": ["file", "type", "mime", "detection", "laravel"], | ||
"license": "MIT", | ||
"type": "library", | ||
|
||
"authors": [ | ||
{ | ||
"name": "Joshua Moon", | ||
"email": "josh@jaw.sh", | ||
"homepage": "https://jaw.sh" | ||
} | ||
], | ||
|
||
"require": { | ||
"php": ">=5.4.0", | ||
"enshrined/svg-sanitize": "0.2.*", | ||
"illuminate/support": "5.*" | ||
}, | ||
|
||
"require-dev": { | ||
"mockery/mockery": "~0.9", | ||
"phpunit/phpunit": "~4.0" | ||
|
||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"InfinityNext\\Sleuth\\": "src/" | ||
} | ||
} | ||
"name": "infinity-next/sleuth", | ||
"keywords": ["file", "type", "mime", "detection", "laravel"], | ||
"license": "MIT", | ||
"type": "library", | ||
"authors": [ | ||
{ | ||
"name": "Joshua Moon", | ||
"email": "josh@jaw.sh", | ||
"homepage": "https://jaw.sh" | ||
} | ||
], | ||
"require": { | ||
"php": "^7.2", | ||
"enshrined/svg-sanitize": "0.10.*", | ||
"illuminate/support": "6.*" | ||
}, | ||
"require-dev": { | ||
"mockery/mockery": "^1.2.3", | ||
"phpunit/phpunit": "^8.0" | ||
|
||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"InfinityNext\\Sleuth\\": "src/" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"InfinityNext\\Sleuth\\Eightdown\\": "tests/" | ||
} | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<?php | ||
|
||
class AppEPUBTest extends PHPUnit_Framework_TestCase | ||
use \PHPUnit\Framework\TestCase; | ||
|
||
class AppEPUBTest extends TestCase | ||
{ | ||
|
||
|
||
} |
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,7 +1,9 @@ | ||
<?php | ||
|
||
class AppPDFTest extends PHPUnit_Framework_TestCase | ||
use \PHPUnit\Framework\TestCase; | ||
|
||
class AppPDFTest extends TestCase | ||
{ | ||
|
||
|
||
} |
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
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,7 +1,9 @@ | ||
<?php | ||
|
||
class DocTXTTest extends PHPUnit_Framework_TestCase | ||
use \PHPUnit\Framework\TestCase; | ||
|
||
class DocTXTTest extends TestCase | ||
{ | ||
|
||
|
||
} |
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
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
<?php | ||
|
||
use InfinityNext\Sleuth\Detectives\svgDetective as MarkupDetective; | ||
use \PHPUnit\Framework\TestCase; | ||
|
||
class MarkupSVGTest extends PHPUnit_Framework_TestCase | ||
class MarkupSVGTest extends TestCase | ||
{ | ||
public function testGood() | ||
{ | ||
$detective = new MarkupDetective; | ||
$detective->check(__DIR__ . "/files/normal.svg"); | ||
$this->assertEquals('svg', $detective->getExtension()); | ||
} | ||
|
||
/** | ||
* @expectedException \InfinityNext\Sleuth\Exceptions\CaseNotSolved | ||
* @expectException \InfinityNext\Sleuth\Exceptions\CaseNotSolved | ||
*/ | ||
public function testException() | ||
{ | ||
$detective = new MarkupDetective; | ||
$detective->check(__DIR__ . "/files/normal.png"); | ||
$detective->getExtension(); | ||
} | ||
} | ||
} |
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
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
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