Run the new static analysis checks in the tests

This commit is contained in:
Graham Campbell
2016-07-24 14:47:29 +01:00
parent b30a774bed
commit 8c273b8579
3 changed files with 53 additions and 15 deletions
+1 -1
View File
@@ -44,7 +44,7 @@
"roumen/feed": "^2.10.4" "roumen/feed": "^2.10.4"
}, },
"require-dev": { "require-dev": {
"alt-three/testbench": "^1.4", "alt-three/testbench": "^1.7",
"filp/whoops": "^2.1", "filp/whoops": "^2.1",
"fzaninotto/faker": "^1.6", "fzaninotto/faker": "^1.6",
"graham-campbell/testbench-core": "^1.1", "graham-campbell/testbench-core": "^1.1",
Generated
+16 -14
View File
@@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "b9a0ccfa48e2a43140cd4c642e23f515", "hash": "ccd6111da387c617bd665375c696b486",
"content-hash": "1f7d74d6083194f25a95c7652ddb1a79", "content-hash": "97beb5839c97f13a3fc0a55ef396524d",
"packages": [ "packages": [
{ {
"name": "alt-three/badger", "name": "alt-three/badger",
@@ -4109,16 +4109,16 @@
"packages-dev": [ "packages-dev": [
{ {
"name": "alt-three/testbench", "name": "alt-three/testbench",
"version": "v1.4.0", "version": "v1.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/AltThree/TestBench.git", "url": "https://github.com/AltThree/TestBench.git",
"reference": "215ca7a1394d79d3ab649b78bc4c55ca63b73531" "reference": "9bc6029a3a813dd20674548e45db5f6db0d1b4cd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/AltThree/TestBench/zipball/215ca7a1394d79d3ab649b78bc4c55ca63b73531", "url": "https://api.github.com/repos/AltThree/TestBench/zipball/9bc6029a3a813dd20674548e45db5f6db0d1b4cd",
"reference": "215ca7a1394d79d3ab649b78bc4c55ca63b73531", "reference": "9bc6029a3a813dd20674548e45db5f6db0d1b4cd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4126,15 +4126,17 @@
"php": ">=5.5.9" "php": ">=5.5.9"
}, },
"require-dev": { "require-dev": {
"nikic/php-parser": "^2.0",
"phpunit/phpunit": "^4.8|^5.0" "phpunit/phpunit": "^4.8|^5.0"
}, },
"suggest": { "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", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-master": "1.4-dev" "dev-master": "1.7-dev"
} }
}, },
"autoload": { "autoload": {
@@ -4166,7 +4168,7 @@
"TestBench", "TestBench",
"app" "app"
], ],
"time": "2016-03-14 18:08:23" "time": "2016-07-24 13:16:43"
}, },
{ {
"name": "doctrine/instantiator", "name": "doctrine/instantiator",
@@ -4224,16 +4226,16 @@
}, },
{ {
"name": "filp/whoops", "name": "filp/whoops",
"version": "2.1.2", "version": "2.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/filp/whoops.git", "url": "https://github.com/filp/whoops.git",
"reference": "d13505b240a6f580bc75ba591da30299d6cb0eec" "reference": "8828aaa2178e0a19325522e2a45282ff0a14649b"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/filp/whoops/zipball/d13505b240a6f580bc75ba591da30299d6cb0eec", "url": "https://api.github.com/repos/filp/whoops/zipball/8828aaa2178e0a19325522e2a45282ff0a14649b",
"reference": "d13505b240a6f580bc75ba591da30299d6cb0eec", "reference": "8828aaa2178e0a19325522e2a45282ff0a14649b",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@@ -4280,7 +4282,7 @@
"whoops", "whoops",
"zf2" "zf2"
], ],
"time": "2016-04-07 06:16:25" "time": "2016-05-06 18:25:35"
}, },
{ {
"name": "fzaninotto/faker", "name": "fzaninotto/faker",
+36
View 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__),
];
}
}