Code Duplication    Length = 8-8 lines in 5 locations

tests/TestTypeTest.php 5 locations

@@ 58-65 (lines=8) @@
55
        $this->assertTrue($foo->isStringNotNullOrEmpty($string));
56
    }
57
58
    public function testIsNotNullInstanceOfWhenPassedObjectToCheck()
59
    {
60
        $var = new \stdClass();
61
        $instanceof = new \stdClass();
62
63
        $foo = new testType();
64
        $this->assertTrue($foo->isNotNullInstanceOf($var, $instanceof));
65
    }
66
67
    public function testIsNotNullInstanceOfWhenPassedStringToCheck()
68
    {
@@ 67-74 (lines=8) @@
64
        $this->assertTrue($foo->isNotNullInstanceOf($var, $instanceof));
65
    }
66
67
    public function testIsNotNullInstanceOfWhenPassedStringToCheck()
68
    {
69
        $var = new \stdClass();
70
        $instanceof = get_class($var);
71
72
        $foo = new testType();
73
        $this->assertTrue($foo->isNotNullInstanceOf($var, $instanceof));
74
    }
75
76
    public function testIsNotNullInstanceOfWhenPassedNonObjectToCheck()
77
    {
@@ 76-83 (lines=8) @@
73
        $this->assertTrue($foo->isNotNullInstanceOf($var, $instanceof));
74
    }
75
76
    public function testIsNotNullInstanceOfWhenPassedNonObjectToCheck()
77
    {
78
        $var = 'Another string.  How amazing.';
79
        $instanceof = new \stdClass();
80
81
        $foo = new testType();
82
        $this->assertFalse($foo->isNotNullInstanceOf($var, $instanceof));
83
    }
84
85
    public function testIsNotNullInstanceOfWhenPassedNullToCheck()
86
    {
@@ 85-92 (lines=8) @@
82
        $this->assertFalse($foo->isNotNullInstanceOf($var, $instanceof));
83
    }
84
85
    public function testIsNotNullInstanceOfWhenPassedNullToCheck()
86
    {
87
        $var = null;
88
        $instanceof = new \stdClass();
89
90
        $foo = new testType();
91
        $this->assertFalse($foo->isNotNullInstanceOf($var, $instanceof));
92
    }
93
94
    public function testIsNullInstanceOfWhenPassedObjectToCheck()
95
    {
@@ 121-128 (lines=8) @@
118
        $this->assertFalse($foo->isNullInstanceOf($var, $instanceof));
119
    }
120
121
    public function testIsNullInstanceOfWhenPassedNullToCheck()
122
    {
123
        $var = null;
124
        $instanceof = new \stdClass();
125
126
        $foo = new testType();
127
        $this->assertTrue($foo->isNullInstanceOf($var, $instanceof));
128
    }
129
130
    public function testIsValidArrayNotEnoughBitz()
131
    {