Verifies that the specified condition is not empty array.
The assertion fails if the condition is not array or it's an empty array.

@param mixed $value
@param string $message
@param string $exception
@throws \Everon\Exception\Asserts
547372
public function assertIsArrayAndNotEmpty($value, $message='%s must not be an empty Array', $exception='Asserts')
    {
        if (isset($value) === false || is_array($value) === false || (is_array($value) && count($value) <= 0)) {
            $this->throwException($exception, $message, $value);
        }
    }
1092337
private function _throwDispatchException( $message, $exception_code = 0 )
    {
        $exception = new \Exception( $message, $exception_code );

		if ( is_object($this->_events_manager) )
        {
            /**
             * If the event returns false -> exit and don't throw exception
             */
            if ( $this->_events_manager->fire( "dispatch:beforeException", $this, array("exception" => $exception) ) == false )
            {
                return false;
            }
		}

        throw $exception;
    }
715622
protected function assertFalse($condition, $message = null)
    {
        $this->context->assertFalse($condition, $message);

        return $this;
    }
1103094
public function propertyVal($object, $property, $value, $message = '')
    {
        $this->assertion->setActual($object);

        return $this->assertion->to->have->property($property, $value, $message);
    }
459828
public function isException($test, $value) {
		$exceptions = $this->getTestExceptions($test);
		return (!empty($exceptions) && in_array($value, $exceptions));
	}
467017
public function getExceptionByMessage($message)
    {
        $exceptions = array();
        foreach ($this->_exceptions as $e) {
            if ($message == $e->getMessage()) {
                $exceptions[] = $e;
            }
        }

        if (empty($exceptions)) {
            $exceptions = false;
        }

        return $exceptions;
    }
1069581
static public function notNull($value, $message = null, $propertyPath = null)
        {
            if ($value === null) {
                $message = $message ?: sprintf(
                    'Value "%s" is null, but non null value was expected.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::VALUE_NULL, $propertyPath);
            }
        }
605375
public static function isNullOrFile($value, $message = null)
    {
        if (!is_null($value) && !(is_string($value) && is_file($value))) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or file, but got %s',
                Helper::valueToString($value)
            ));
        }
    }
862629
public static function isNullOrCallable($value, $message = null)
    {
        if (!is_null($value) && !is_callable($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or callable, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
1299025
public static function isNullOrFloat($value, $message = null)
    {
        if (!is_null($value) && !is_float($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected null or float, but got %s',
                Helper::typeToString($value)
            ));
        }
    }
909255
private function logException($message, $exception)
    {
        return $this->app['logger.system']->error(
            $message . ': ' . $exception->getMessage(),
            ['event' => 'exception', 'exception' => $exception]
        );
    }
930669
protected function assertTrue($condition, $message = null)
    {
        $this->context->assertTrue($condition, $message);

        return $this;
    }
1148075
public static function keyExists($value, $key, $message = null)
    {
        if (!array_key_exists($key, $value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected array key %2$s to exist',
                Helper::typeToString($value),
                Helper::valueToString($key)
            ));
        }
    }
1266577
private function assertElementText($condition, $message, Element $element)
    {
        if ($condition) {
            return;
        }

        throw new ElementTextException($message, $this->session->getDriver(), $element);
    }
888158
static public function isArray($value, $message = null, $propertyPath = null)
        {
            if (!Arrays::is($value)) {
                $message = $message ?: sprintf(
                    'Value "%s" is not an array.',
                    static::stringify($value)
                );

                throw static::createException($value, $message, static::INVALID_ARRAY, $propertyPath);
            }
        }
1080415
public function hasExceptionOfMessage($message)
    {
        foreach ($this->_exceptions as $e) {
            if ($message == $e->getMessage()) {
                return true;
            }
        }

        return false;
    }
1076125
public static function isResource($value, $message = null)
    {
        if (!is_resource($value)) {
            throw new InvalidArgumentException(sprintf(
                $message ?: 'Expected resource, but got %s',
                Helper::typeToString($value)
            ));
        }
    }