initial commit

This commit is contained in:
Guillermo Dev
2018-12-01 12:08:22 +01:00
commit a00aaa037c
5 changed files with 1535 additions and 0 deletions

29
composer.json Executable file
View File

@@ -0,0 +1,29 @@
{
"name": "gbili/exception",
"description": "Provides basic exception classes",
"authors" : [
{
"name" : "Guillermo Pages",
"email" : "public.gullermo@gmail.com"
}
],
"keywords": [
"exception"
],
"autoload": {
"psr-4": {
"Gbili\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Gbili\\": "tests/"
}
},
"require": {
"php": ">=5.3.3"
},
"require-dev": {
"phpunit/phpunit": "^6"
}
}

1480
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

7
phpunit.xml Normal file
View File

@@ -0,0 +1,7 @@
<phpunit bootstrap="vendor/autoload.php">
<testsuites>
<testsuite name="gbilidyninterface">
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
</phpunit>

8
src/Exception/Exception.php Executable file
View File

@@ -0,0 +1,8 @@
<?php
namespace Gbili\Exception;
class Exception
extends \Exception
{
}

View File

@@ -0,0 +1,11 @@
<?php
namespace Gbili\Exception;
/**
* Use this in a getter whose property has not been set yet
*/
class GettingBeforeSettingException
extends \Gbili\Exception\Exception
{
}