public function testBoolTypeValidator() { $bool = new BoolType(); $this->assertTrue($bool->test('true')); $this->assertTrue($bool->test('false')); $this->assertTrue($bool->test('0')); $this->assertTrue($bool->test('1')); $this->assertFalse($bool->test('foo')); $this->assertFalse($bool->test('123')); }