forked from wkcaj/safecurl
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from j0k3r/test
Add some tests
- Loading branch information
Showing
27 changed files
with
1,415 additions
and
652 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_size = 4 |
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,8 @@ | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/README.md export-ignore | ||
/phpunit.xml export-ignore | ||
/tests export-ignore | ||
/example export-ignore |
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,3 @@ | ||
vendor | ||
composer.lock | ||
build |
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,9 @@ | ||
tools: | ||
external_code_coverage: | ||
timeout: 600 | ||
|
||
filter: | ||
excluded_paths: | ||
- 'example/*' | ||
- 'tests/*' | ||
- '*Test.php' |
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,33 @@ | ||
language: php | ||
|
||
php: | ||
- 5.3.3 | ||
- 5.3 | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
# cache vendor dirs | ||
cache: | ||
directories: | ||
- vendor | ||
- $HOME/.composer/cache | ||
|
||
# faster builds on new travis setup not using sudo | ||
sudo: false | ||
|
||
install: | ||
- composer self-update | ||
|
||
before_script: | ||
- composer install --prefer-dist --no-interaction | ||
|
||
script: | ||
- ./vendor/bin/phpunit --coverage-clover=coverage.clover | ||
|
||
after_script: | ||
- | | ||
wget https://scrutinizer-ci.com/ocular.phar | ||
php ocular.phar code-coverage:upload --format=php-clover coverage.clover |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
syntaxCheck="false" | ||
bootstrap="vendor/autoload.php" | ||
> | ||
<testsuites> | ||
<testsuite name="safecurl Test Suite"> | ||
<directory>./tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>./src/</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<logging> | ||
<log type="coverage-html" target="build/coverage" title="safecurl" charset="UTF-8" yui="true" highlight="true" lowUpperBound="35" highLowerBound="70"/> | ||
</logging> | ||
</phpunit> |
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,7 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl; | ||
|
||
class Exception extends \Exception | ||
{ | ||
} |
5 changes: 4 additions & 1 deletion
5
...Curl/Exception/InvalidOptionException.php → src/Exception/InvalidOptionException.php
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,9 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl\Exception; | ||
|
||
use fin1te\SafeCurl\Exception; | ||
|
||
class InvalidOptionException extends Exception { } | ||
class InvalidOptionException extends Exception | ||
{ | ||
} |
5 changes: 4 additions & 1 deletion
5
...afeCurl/Exception/InvalidURLException.php → src/Exception/InvalidURLException.php
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,9 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl\Exception; | ||
|
||
use fin1te\SafeCurl\Exception; | ||
|
||
class InvalidURLException extends Exception { } | ||
class InvalidURLException extends Exception | ||
{ | ||
} |
5 changes: 4 additions & 1 deletion
5
...idURLException/InvalidDomainException.php → ...idURLException/InvalidDomainException.php
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,9 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
use fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
class InvalidDomainException extends InvalidURLException { } | ||
class InvalidDomainException extends InvalidURLException | ||
{ | ||
} |
5 changes: 4 additions & 1 deletion
5
...nvalidURLException/InvalidIPException.php → ...nvalidURLException/InvalidIPException.php
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,9 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
use fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
class InvalidIPException extends InvalidURLException { } | ||
class InvalidIPException extends InvalidURLException | ||
{ | ||
} |
5 changes: 4 additions & 1 deletion
5
...alidURLException/InvalidPortException.php → ...alidURLException/InvalidPortException.php
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,9 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
use fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
class InvalidPortException extends InvalidURLException { } | ||
class InvalidPortException extends InvalidURLException | ||
{ | ||
} |
5 changes: 4 additions & 1 deletion
5
...idURLException/InvalidSchemeException.php → ...idURLException/InvalidSchemeException.php
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,9 @@ | ||
<?php | ||
|
||
namespace fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
use fin1te\SafeCurl\Exception\InvalidURLException; | ||
|
||
class InvalidSchemeException extends InvalidURLException { } | ||
class InvalidSchemeException extends InvalidURLException | ||
{ | ||
} |
Oops, something went wrong.