for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @link https://github.com/ko-ko-ko/php-assert
* @copyright Copyright (c) 2015 Roman Levishchenko <[email protected]>
* @license https://raw.github.com/ko-ko-ko/php-assert/master/LICENSE
*/
namespace KoKoKo\assert\exceptions;
class InvalidNotEmptyException extends ArgumentException
{
* @param string $variableName
* @throws InvalidStringException
public function __construct($variableName)
if (!is_string($variableName)) {
throw new InvalidStringException('variableName', $variableName);
}
parent::__construct(
sprintf(
'Variable "$%s" must be "not empty"',
$variableName
)
);