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