function it_should_convert_a_value_from_ldap_to_a_php_bool()
{
$this->setAttribute('typeDistribution');
// A security type group...
$this->fromLdap('-2147483646')->shouldBeEqualTo(false);
// A distribution type group...
$this->fromLdap('2')->shouldBeEqualTo(true);
$this->setAttribute('typeSecurity');
// A security type group...
$this->fromLdap('-2147483646')->shouldBeEqualTo(true);
// A distribution type group...
$this->fromLdap('2')->shouldBeEqualTo(false);
$this->setAttribute('scopeGlobal');
$this->fromLdap('2')->shouldBeEqualTo(true);
$this->fromLdap('-2147483646')->shouldBeEqualTo(true);
$this->fromLdap('4')->shouldBeEqualTo(false);
$this->setAttribute('scopeDomainLocal');
$this->fromLdap('4')->shouldBeEqualTo(true);
$this->fromLdap('-2147483644')->shouldBeEqualTo(true);
$this->fromLdap('2')->shouldBeEqualTo(false);
$this->setAttribute('scopeUniversal');
$this->fromLdap('8')->shouldBeEqualTo(true);
$this->fromLdap('-2147483640')->shouldBeEqualTo(true);
$this->fromLdap('4')->shouldBeEqualTo(false);
}