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
<?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" | |
stopOnFailure="false"> |
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
"autoload": { | |
"classmap": [ | |
"database/seeds", | |
"database/factories" | |
], | |
"psr-4": { | |
"App\\": "app/" | |
}, | |
"files": [ | |
"app/Helpers/calculations.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
<div class="container" id="app"> | |
<div class="add-product" :class="{'open': formOpen}"> | |
<div class="button-copy" v-show="!formOpen" @click="formOpen = true">Add Product</div> | |
<form @submit="cancel()"> | |
<div class="form--field"> | |
<label>Product Title *</label> | |
<input type="text" class="form--element" name="title" v-model="productData.title" placeholder="Title" required=""> | |
</div> | |
<div class="form--container -inline"> |
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
<?php | |
// To make this file work properly, you must create the App\Helpers\Model | |
// class, and have all models inherit from this class. | |
namespace Tests; | |
use App\Helpers\Model; | |
use PHPUnit\Framework\Assert; | |
use Illuminate\Support\Collection as BaseCollection; |
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
<?php | |
namespace App\Helpers; | |
use Illuminate\Database\Eloquent\Model as EloquentModel; | |
// This now makes a non abstract version of model so we can | |
// add macro's to model in certain situations like testing | |
class Model extends EloquentModel |
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
<?php | |
namespace Tests; | |
use App\Account; | |
use App\CompressionProfile; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Auth\SessionGuard; | |
// This sits on top of the regular test case and allows for macros |
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
<?php | |
namespace Tests; | |
use Illuminate\Database\Eloquent\Collection as EloquentCollection; | |
use Illuminate\Foundation\Testing\RefreshDatabase; | |
use Illuminate\Support\Facades\DB; | |
// Use this area to add macros that are relevant to the database | |
// It will have access to testcase and domain test case. But |
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
<?php | |
namespace Tests; | |
/** | |
* Laravel + PHPUnit assert that blade files are being loaded. | |
* | |
* Trait AssertView | |
*/ | |
trait Viewable |
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
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Foundation\Bus\DispatchesJobs; | |
use Illuminate\Routing\Controller as BaseController; | |
use Illuminate\Foundation\Validation\ValidatesRequests; | |
use Illuminate\Foundation\Auth\Access\AuthorizesRequests; | |
use phpDocumentor\Reflection\Types\Self_; | |
use Prophecy\Exception\Doubler\MethodNotFoundException; |
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
#!/bin/sh | |
sed -i.default "s/^zend_extension=/;zend_extension=/" /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php71.plist | |
sudo brew services restart php71 | |
echo "xdebug disabled" |
OlderNewer