src/Module/Aerospike.php
public function seeInAerospike($key, $value = false)
    {
        $akey = $this->buildKey($key);

        $status = $this->aerospike->get($akey, $actual);
        if ($status != \Aerospike::OK) {
            $this->fail(
                strtr(
                    "[:errno:] Unable to get ':key:' from the database: :error:",
                    [
                        ':errno:' => $this->aerospike->errorno(),
                        ':key:'   => $key,
                        ':error:' => $this->aerospike->error()
                    ]
                )
            );
        }

        $this->debugSection('Value', $actual['bins']['value']);
        $this->assertEquals($value, $actual['bins']['value']);
    }
public function seeInAerospike($key, $value = false)
    {
        $akey = $this->buildKey($key);

        $status = $this->aerospike->get($akey, $actual);
        if ($status != \Aerospike::OK) {
            $this->fail(
                strtr(
                    "[:errno:] Unable to get ':key:' from the database: :error:",
                    [
                        ':errno:' => $this->aerospike->errorno(),
                        ':key:'   => $key,
                        ':error:' => $this->aerospike->error()
                    ]
                )
            );
        }

        $this->debugSection('Value', $actual['bins']['value']);
        $this->assertEquals($value, $actual['bins']['value']);
    }
public function seeInAerospike ( $ key , $ value = false ) { $ akey = $ this -> buildKey ( $ key ) ; $ status = $ this -> aerospike -> get ( $ akey , $ actual ) ; if ( $ status != \ Aerospike :: OK ) { $ this -> fail ( strtr ( "[:errno:] Unable to get ':key:' from the database: :error:" , [ ':errno:' => $ this -> aerospike -> errorno ( ) , ':key:' => $ key , ':error:' => $ this -> aerospike -> error ( ) ] ) ) ; } $ this -> debugSection ( 'Value' , $ actual [ 'bins' ] [ 'value' ] ) ; $ this -> assertEquals ( $ value , $ actual [ 'bins' ] [ 'value' ] ) ; }
Checks item in Aerospike exists and the same as expected.

Example:

```php
<?php
$I->seeInAerospike('key');
$I->seeInAerospike('key', 'value');
?>

@param $key
@param mixed $value
Checks item in Aerospike exists and the same as expected .