mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-01-17 05:28:18 +01:00
Run the new static analysis checks in the tests
This commit is contained in:
parent
b30a774bed
commit
8c273b8579
@ -44,7 +44,7 @@
|
||||
"roumen/feed": "^2.10.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"alt-three/testbench": "^1.4",
|
||||
"alt-three/testbench": "^1.7",
|
||||
"filp/whoops": "^2.1",
|
||||
"fzaninotto/faker": "^1.6",
|
||||
"graham-campbell/testbench-core": "^1.1",
|
||||
|
30
composer.lock
generated
30
composer.lock
generated
@ -4,8 +4,8 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"hash": "b9a0ccfa48e2a43140cd4c642e23f515",
|
||||
"content-hash": "1f7d74d6083194f25a95c7652ddb1a79",
|
||||
"hash": "ccd6111da387c617bd665375c696b486",
|
||||
"content-hash": "97beb5839c97f13a3fc0a55ef396524d",
|
||||
"packages": [
|
||||
{
|
||||
"name": "alt-three/badger",
|
||||
@ -4109,16 +4109,16 @@
|
||||
"packages-dev": [
|
||||
{
|
||||
"name": "alt-three/testbench",
|
||||
"version": "v1.4.0",
|
||||
"version": "v1.7.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/AltThree/TestBench.git",
|
||||
"reference": "215ca7a1394d79d3ab649b78bc4c55ca63b73531"
|
||||
"reference": "9bc6029a3a813dd20674548e45db5f6db0d1b4cd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/AltThree/TestBench/zipball/215ca7a1394d79d3ab649b78bc4c55ca63b73531",
|
||||
"reference": "215ca7a1394d79d3ab649b78bc4c55ca63b73531",
|
||||
"url": "https://api.github.com/repos/AltThree/TestBench/zipball/9bc6029a3a813dd20674548e45db5f6db0d1b4cd",
|
||||
"reference": "9bc6029a3a813dd20674548e45db5f6db0d1b4cd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -4126,15 +4126,17 @@
|
||||
"php": ">=5.5.9"
|
||||
},
|
||||
"require-dev": {
|
||||
"nikic/php-parser": "^2.0",
|
||||
"phpunit/phpunit": "^4.8|^5.0"
|
||||
},
|
||||
"suggest": {
|
||||
"laravel/framework": "Enables the use of every trait."
|
||||
"laravel/framework": "Enables the use of every trait.",
|
||||
"nikic/php-parser": "Enables the use of the static analyzer."
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.4-dev"
|
||||
"dev-master": "1.7-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@ -4166,7 +4168,7 @@
|
||||
"TestBench",
|
||||
"app"
|
||||
],
|
||||
"time": "2016-03-14 18:08:23"
|
||||
"time": "2016-07-24 13:16:43"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/instantiator",
|
||||
@ -4224,16 +4226,16 @@
|
||||
},
|
||||
{
|
||||
"name": "filp/whoops",
|
||||
"version": "2.1.2",
|
||||
"version": "2.1.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/filp/whoops.git",
|
||||
"reference": "d13505b240a6f580bc75ba591da30299d6cb0eec"
|
||||
"reference": "8828aaa2178e0a19325522e2a45282ff0a14649b"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/filp/whoops/zipball/d13505b240a6f580bc75ba591da30299d6cb0eec",
|
||||
"reference": "d13505b240a6f580bc75ba591da30299d6cb0eec",
|
||||
"url": "https://api.github.com/repos/filp/whoops/zipball/8828aaa2178e0a19325522e2a45282ff0a14649b",
|
||||
"reference": "8828aaa2178e0a19325522e2a45282ff0a14649b",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@ -4280,7 +4282,7 @@
|
||||
"whoops",
|
||||
"zf2"
|
||||
],
|
||||
"time": "2016-04-07 06:16:25"
|
||||
"time": "2016-05-06 18:25:35"
|
||||
},
|
||||
{
|
||||
"name": "fzaninotto/faker",
|
||||
|
36
tests/AnalysisTest.php
Normal file
36
tests/AnalysisTest.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Cachet.
|
||||
*
|
||||
* (c) Alt Three Services Limited
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace CachetHQ\Tests\Cachet;
|
||||
|
||||
use AltThree\TestBench\AnalysisTrait;
|
||||
use PHPUnit_Framework_TestCase as TestCase;
|
||||
|
||||
/**
|
||||
* This is the analysis test class.
|
||||
*
|
||||
* @author Graham Campbell <graham@alt-three.com>
|
||||
*/
|
||||
class AnalysisTest extends TestCase
|
||||
{
|
||||
use AnalysisTrait;
|
||||
|
||||
protected function getPaths()
|
||||
{
|
||||
return [
|
||||
realpath(__DIR__.'/../app'),
|
||||
realpath(__DIR__.'/../bootstrap'),
|
||||
realpath(__DIR__.'/../config'),
|
||||
realpath(__DIR__.'/../database'),
|
||||
realpath(__DIR__),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user