public function test_boolean_values_ONLY_should_return_true() { $validator = new Bool(); $this->assertTrue($validator->validate(true)); $this->assertTrue($validator->validate(false)); $this->assertTrue($validator->assert(true)); $this->assertTrue($validator->assert(false)); $this->assertTrue($validator->check(true)); $this->assertTrue($validator->check(false)); }
public function testBooleanValuesONLYShouldReturnTrue() { $validator = new Bool(); $this->assertTrue($validator->__invoke('')); $this->assertTrue($validator->__invoke(true)); $this->assertTrue($validator->__invoke(false)); $this->assertTrue($validator->assert(true)); $this->assertTrue($validator->assert(false)); $this->assertTrue($validator->check(true)); $this->assertTrue($validator->check(false)); }