for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Issei\StreamedCsvResponse;
/**
* Assertion.
*
* {@internal Don't use this in user-land code }}
* @author Issei Murasawa <[email protected]>
*/
final class Assert
{
* Throws an \InvalidArgumentException if given value is not iterable.
* @param mixed $value
* @param string $message
public static function isIterable($value, $message)
if (!$value instanceof \Traversable && !is_array($value)) {
throw new \InvalidArgumentException($message);
}
private function __construct() {}