spec\LdapTools\Query\LdapQuerySpec::it_should_throw_an_exception_when_calling_getSingleScalarResult_and_no_LDAP_object_is_found PHP Метод

it_should_throw_an_exception_when_calling_getSingleScalarResult_and_no_LDAP_object_is_found() публичный Метод

    function it_should_throw_an_exception_when_calling_getSingleScalarResult_and_no_LDAP_object_is_found($connection)
    {
        $this->operation->setAttributes(['sn']);
        $connection->execute(Argument::that(function ($op) {
            return $op->getAttributes() == ['sn'];
        }))->willReturn(['count' => 0]);
        $this->shouldThrow('\\LdapTools\\Exception\\EmptyResultException')->duringGetSingleScalarResult();
    }
LdapQuerySpec