Browse Source

Update phpunit.xml and add laravel/legacy-factories package

pull/67/head
Nafies Luthfi 5 years ago
parent
commit
418260bea2
  1. 1
      composer.json
  2. 55
      composer.lock
  3. 54
      phpunit.xml

1
composer.json

@ -26,6 +26,7 @@
"barryvdh/laravel-debugbar": "^3.1",
"fzaninotto/faker": "^1.4",
"johnkary/phpunit-speedtrap": "^3.0",
"laravel/legacy-factories": "^1.1",
"luthfi/simple-crud-generator": "dev-master",
"mockery/mockery": "^1.0",
"phpunit/phpunit": "^9.0"

55
composer.lock

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "b988d9457e04aab5a18104e102b365ba",
"content-hash": "4073fedfe0db90dfa7fb4de8d17ddefb",
"packages": [
{
"name": "backup-manager/backup-manager",
@ -4631,6 +4631,7 @@
"faker",
"fixtures"
],
"abandoned": true,
"time": "2019-12-12T13:22:17+00:00"
},
{
@ -4791,6 +4792,58 @@
"time": "2020-10-30T09:10:17+00:00"
},
{
"name": "laravel/legacy-factories",
"version": "v1.1.0",
"source": {
"type": "git",
"url": "https://github.com/laravel/legacy-factories.git",
"reference": "5e3fe2fd5fda64e20ea5c74c831a7346294e902a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/laravel/legacy-factories/zipball/5e3fe2fd5fda64e20ea5c74c831a7346294e902a",
"reference": "5e3fe2fd5fda64e20ea5c74c831a7346294e902a",
"shasum": ""
},
"require": {
"illuminate/macroable": "^8.0",
"php": "^7.3|^8.0",
"symfony/finder": "^3.4|^4.0|^5.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
},
"laravel": {
"providers": [
"Illuminate\\Database\\Eloquent\\LegacyFactoryServiceProvider"
]
}
},
"autoload": {
"files": [
"helpers.php"
],
"psr-4": {
"Illuminate\\Database\\Eloquent\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylor@laravel.com"
}
],
"description": "The legacy version of the Laravel Eloquent factories.",
"homepage": "http://laravel.com",
"time": "2020-10-27T14:25:32+00:00"
},
{
"name": "luthfi/simple-crud-generator",
"version": "dev-master",
"source": {

54
phpunit.xml

@ -1,33 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">app/</directory>
</whitelist>
</filter>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="FILESYSTEM_DRIVER" value="test_storage"/>
</php>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" backupStaticAttributes="false" bootstrap="bootstrap/autoload.php" colors="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">app/</directory>
</include>
</coverage>
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
<php>
<env name="APP_ENV" value="testing"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="CACHE_DRIVER" value="array"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="MAIL_DRIVER" value="array"/>
<env name="FILESYSTEM_DRIVER" value="test_storage"/>
</php>
</phpunit>
Loading…
Cancel
Save