public function testStrict() { $this->if($schema_validator = new SchemaValidator())->and($object = new testedClass($schema_validator))->and($config = array('_required' => true, '_strict' => true))->then->boolean($object->validate('test', $config, false))->isEqualTo(true)->exception(function () use($object, $config) { $object->validate('test', $config, 'true'); })->hasMessage("The node 'test' is not a boolean"); }