public function assertInDatabase($table, array $data, $message, $negate = false)
    {
        $count = $this->seeRowsWereReturned($table, $data);
        $method = $negate ? 'assertEquals' : 'assertGreaterThan';

        $this->$method(0, $count, $message);

        return $this;
    }
public function assertInDatabase($table, array $data, $message, $negate = false)
    {
        $count = $this->seeRowsWereReturned($table, $data);
        $method = $negate ? 'assertEquals' : 'assertGreaterThan';

        $this->$method(0, $count, $message);

        return $this;
    }
public function assertInDatabase ( $ table , array $ data , $ message , $ negate = false ) { $ count = $ this -> seeRowsWereReturned ( $ table , $ data ) ; $ method = $ negate ? 'assertEquals' : 'assertGreaterThan' ; $ this -> $ method ( 0 , $ count , $ message ) ; return $ this ; }
Assert that a record is contained in the database.

@param  string  $table
@param  array   $data
@param  string  $message
@param  boolean $negate
@return static
Assert that a record is contained in the database .