Skip to content

Commit

Permalink
Run the new static analysis checks in the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Jul 24, 2016
1 parent b30a774 commit 8c273b8
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 15 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
30 changes: 16 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 36 additions & 0 deletions tests/AnalysisTest.php
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
*/
class AnalysisTest extends TestCase
{
use AnalysisTrait;

protected function getPaths()
{
return [
realpath(__DIR__.'/../app'),
realpath(__DIR__.'/../bootstrap'),
realpath(__DIR__.'/../config'),
realpath(__DIR__.'/../database'),
realpath(__DIR__),
];
}
}

0 comments on commit 8c273b8

Please sign in to comment.