We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3befd2 commit 8a02e8fCopy full SHA for 8a02e8f
tests/Support/SupportHelpersTest.php
@@ -34,6 +34,21 @@ public function testE()
34
$this->assertEquals($str, e($html));
35
}
36
37
+ public function testBlank()
38
+ {
39
+ $this->assertTrue(blank(null));
40
+ $this->assertTrue(blank(''));
41
+ $this->assertTrue(blank(' '));
42
+ $this->assertFalse(blank(10));
43
+ $this->assertFalse(blank(true));
44
+ $this->assertFalse(blank(false));
45
+ $this->assertFalse(blank(0));
46
+ $this->assertFalse(blank(0.0));
47
+
48
+ $object = new SupportTestCountable();
49
+ $this->assertTrue(blank($object));
50
+ }
51
52
public function testClassBasename()
53
{
54
$this->assertSame('Baz', class_basename('Foo\Bar\Baz'));
0 commit comments