File tree 2 files changed +44
-0
lines changed
2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 25
25
<directory suffix =" .php" >./app</directory >
26
26
</whitelist >
27
27
</filter >
28
+ <listeners >
29
+ <listener class =" CachetHQ\Tests\Cachet\TestListener" file =" ./tests/TestListener.php" />
30
+ </listeners >
28
31
<php >
29
32
<env name =" APP_ENV" value =" testing" />
30
33
<env name =" APP_DEBUG" value =" true" />
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Cachet.
5
+ *
6
+ * (c) Alt Three Services Limited
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ namespace CachetHQ \Tests \Cachet ;
13
+
14
+ use PHPUnit_Framework_BaseTestListener ;
15
+ use PHPUnit_Framework_TestSuite ;
16
+
17
+ /**
18
+ * This is the test listener class.
19
+ *
20
+ * @author Connor S. Parks <connor@connorvg.tv>
21
+ */
22
+ class TestListener extends PHPUnit_Framework_BaseTestListener
23
+ {
24
+ /**
25
+ * A test suite ended.
26
+ *
27
+ * @param \PHPUnit_Framework_TestSuite $suite
28
+ *
29
+ * @return void
30
+ */
31
+ public function endTestSuite (PHPUnit_Framework_TestSuite $ suite )
32
+ {
33
+ if ($ suite ->getName () !== 'Cachet Test Suite ' ) {
34
+ return ;
35
+ }
36
+
37
+ foreach (glob (__DIR__ .'/../bootstrap/cache{,t}/*.php ' , GLOB_BRACE ) as $ file ) {
Has a conversation. Original line has a conversation.
38
+ unlink ($ file );
39
+ }
40
+ }
41
+ }
You can’t perform that action at this time.