for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Assert
*
* LICENSE
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so I can send you a copy immediately.
*/
namespace Assert\Tests;
use Assert\Assertion;
class CustomAssertion extends Assertion
{
protected static $exceptionClass = 'Assert\Tests\CustomException';
private static $calls = array();
public static function clearCalls()
self::$calls = array();
}
public static function getCalls()
return self::$calls;
public static function string($value, $message = null, $propertyPath = null)
self::$calls[] = array('string', $value);
return parent::string($value, $message, $propertyPath);