spec\LdapTools\Utilities\LdapUtilitiesSpec::it_should_check_if_a_string_is_actually_binary_data PHP Method

it_should_check_if_a_string_is_actually_binary_data() public method

    function it_should_check_if_a_string_is_actually_binary_data()
    {
        $this::isBinary(hex2bin('f0ba44'))->shouldEqual(true);
        $this::isBinary("\r\nfoo\r\tbar ")->shouldEqual(false);
        $this::isBinary('123')->shouldEqual(false);
        $this->isBinary('UTF-8 Data - fÒbÀr.')->shouldEqual(false);
    }