Code Duplication    Length = 38-39 lines in 2 locations

risoluto/lib/vendor_test/Risoluto/ConfTest/ConfTest4GetParseStatus.php 1 location

@@ 20-58 (lines=39) @@
17
//------------------------------------------------------//
18
// テストクラス定義
19
//------------------------------------------------------//
20
class ConfTest4GetParseStatus extends \PHPUnit_Framework_TestCase
21
{
22
    //------------------------------------------------------//
23
    // テストメソッド定義
24
    //------------------------------------------------------//
25
    /**
26
     * setUp()
27
     *
28
     * テストに必要な準備を実施
29
     */
30
    protected function setUp()
31
    {
32
    }
33
34
    /**
35
     * test_GetParseStatus_BeforeParsed()
36
     *
37
     * 未パース時のGetParseStatus()の挙動をテストする
38
     */
39
    public function test_GetParseStatus_BeforeParsed()
40
    {
41
        $instance = new Conf;
42
        $this->assertFalse( $instance->getParseStatus() );
43
        unset( $instance );
44
    }
45
46
    /**
47
     * test_GetParseStatus_AfterParsed()
48
     *
49
     * パース後のGetParseStatus()の挙動をテストする
50
     */
51
    public function test_GetParseStatus_AfterParsed()
52
    {
53
        $instance = new Conf;
54
        $instance->parse( RISOLUTO_CONF . 'risoluto.ini' );
55
        $this->assertTrue( $instance->getParseStatus() );
56
        unset( $instance );
57
    }
58
}
59

risoluto/lib/vendor_test/Risoluto/ConfTest/ConfTest4Parse.php 1 location

@@ 20-57 (lines=38) @@
17
//------------------------------------------------------//
18
// テストクラス定義
19
//------------------------------------------------------//
20
class ConfTest4Parse extends \PHPUnit_Framework_TestCase
21
{
22
    //------------------------------------------------------//
23
    // テストメソッド定義
24
    //------------------------------------------------------//
25
    /**
26
     * setUp()
27
     *
28
     * テストに必要な準備を実施
29
     */
30
    protected function setUp()
31
    {
32
    }
33
34
    /**
35
     * test_ParseSet_InvalidFile()
36
     *
37
     * Iniファイル形式ではないファイルが指定された場合のParse()の挙動をテストする
38
     */
39
    public function test_ParseSet_InvalidFile()
40
    {
41
        $instance = new Conf;
42
        $this->assertFalse( $instance->parse( '/dev/null' ) );
43
        unset( $instance );
44
    }
45
46
    /**
47
     * test_ParseSet_ValidFile()
48
     *
49
     * Iniファイル形式のファイルが指定された場合のParse()の挙動をテストする
50
     */
51
    public function test_ParseSet_ValidFile()
52
    {
53
        $instance = new Conf;
54
        $this->assertTrue( $instance->parse( RISOLUTO_CONF . 'risoluto.ini' ) );
55
        unset( $instance );
56
    }
57
}
58