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

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

    function it_should_return_a_single_attribute_value_when_calling_getSingleScalarResult($connection)
    {
        $result = $this->ldapEntries;
        $result['count'] = 1;
        unset($result[1]);
        $this->operation->setAttributes(['sn']);
        $connection->execute(Argument::that(function ($op) {
            return $op->getAttributes() == ['sn'];
        }))->willReturn($result);
        $this->getSingleScalarResult()->shouldBeEqualTo('Bourke');
    }
LdapQuerySpec