Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":406:{a:2:{s:7:"defects";a:0:{}s:5:"times";a:4:{s:49:"Ownable\Tests\OwnsModelsTraitTest::testOwnsMethod";d:0.115;s:54:"Ownable\Tests\OwnsModelsTraitTest::testdoesntOwnMethod";d:0.01;s:102:"Ownable\Tests\OwnsModelsTraitTest::testItShouldUseTheInterfaceImplementationIfClassImplementsInterface";d:0.012;s:93:"Ownable\Tests\OwnsModelsTraitTest::testItShouldOverrideTheContractAndUserTheRegularValidation";d:0.009;}}}
{"version":1,"defects":[],"times":{"Ownable\\Tests\\OwnsModelsTraitTest::testOwnsMethod":0.025,"Ownable\\Tests\\OwnsModelsTraitTest::testdoesntOwnMethod":0.002,"Ownable\\Tests\\OwnsModelsTraitTest::testItShouldUseTheInterfaceImplementationIfClassImplementsInterface":0.003,"Ownable\\Tests\\OwnsModelsTraitTest::testItShouldOverrideTheContractAndUserTheRegularValidation":0.003}}
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "santigarcor/laravel-ownable",
"description": "Simple trait to manage the ownershipt of models/objects",
"description": "Simple trait to check ownership of models/objects",
"keywords": ["laravel", "ownership", "ownable", "owns"],
"require": {
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0",
"illuminate/database": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0",
"laravel/legacy-factories": "^1.3"
},
"require-dev": {
"orchestra/testbench": "^4.0|^5.0|^6.0",
"phpunit/phpunit": "^7.5.15|^8.4|^9.0"
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0|^10.0",
"phpunit/phpunit": "^7.5.15|^8.4|^9.0|^10.0|^11.0"
},
"autoload": {
"psr-4": {
Expand Down
21 changes: 8 additions & 13 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
verbose="true"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
colors="true"
cacheDirectory=".phpunit.result.cache"
>
<testsuites>
<testsuite name="Laravel Ownable Test Suite">
<directory suffix="Test.php">./tests/</directory>
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>
</phpunit>