SharethisTest::TestDevBuild()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace SunnysideUp\ShareThis;
4
5
use SilverStripe\Dev\SapphireTest;
6
7
/**
8
 * SharethisTest
9
 */
10
class SharethisTest extends SapphireTest
11
{
12
	/**
13
	 * @var boolean
14
	 */
15
    protected $usesDatabase = false;
16
17
    /**
18
     * @var array
19
     */
20
    protected $requiredExtensions = [];
21
22
    /**
23
     * Test the dev build
24
     */
25
    public function TestDevBuild()
26
    {
27
        $exitStatus = shell_exec('php framework/cli-script.php dev/build flush=all  > dev/null; echo $?');
28
        $exitStatus = intval(trim($exitStatus));
29
        $this->assertEquals(0, $exitStatus);
30
    }
31
}
32