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

        if ($value === false) {
            $status = $this->aerospike->get($akey, $record);
            $this->assertSame(\Aerospike::ERR_RECORD_NOT_FOUND, $status);
            return;
        }

        $this->aerospike->get($akey, $actual);

        if (isset($actual['bins']['value'])) {
            $actual = $actual['bins']['value'];
        }

        $this->debugSection('Value', $actual);
        $this->assertNotEquals($value, $actual);
    }
public function dontSeeInAerospike($key, $value = false)
    {
        $akey = $this->buildKey($key);

        if ($value === false) {
            $status = $this->aerospike->get($akey, $record);
            $this->assertSame(\Aerospike::ERR_RECORD_NOT_FOUND, $status);
            return;
        }

        $this->aerospike->get($akey, $actual);

        if (isset($actual['bins']['value'])) {
            $actual = $actual['bins']['value'];
        }

        $this->debugSection('Value', $actual);
        $this->assertNotEquals($value, $actual);
    }
public function dontSeeInAerospike ( $ key , $ value = false ) { $ akey = $ this -> buildKey ( $ key ) ; if ( $ value === false ) { $ status = $ this -> aerospike -> get ( $ akey , $ record ) ; $ this -> assertSame ( \ Aerospike :: ERR_RECORD_NOT_FOUND , $ status ) ; return ; } $ this -> aerospike -> get ( $ akey , $ actual ) ; if ( isset ( $ actual [ 'bins' ] [ 'value' ] ) ) { $ actual = $ actual [ 'bins' ] [ 'value' ] ; } $ this -> debugSection ( 'Value' , $ actual ) ; $ this -> assertNotEquals ( $ value , $ actual ) ; }
Checks item in Aerospike does not exist or is the same as expected.

Example:

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

@param string $key  Key
@param mixed $value Value
Checks item in Aerospike does not exist or is the same as expected .