public function testBoolean() { $closure = DefaultGenerator::boolean($this->factory, 'test', array('value' => true)); $this->assertTrue($closure()); $closure = DefaultGenerator::boolean($this->factory, 'test', array('value' => null)); $this->assertTrue(is_bool($closure())); }