Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
4 / 4
InvalidExpectationDefinitionException
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
<?php
/**
 * Copyright (c) Tony Bogdanov <tonybogdanov@gmail.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
namespace DataExpectation\Exceptions;
/**
 * Class InvalidExpectationDefinitionException
 *
 * @package DataExpectation\Exceptions
 * @author Tony Bogdanov <tonybogdanov@gmail.com>
 */
class InvalidExpectationDefinitionException extends AbstractException {
    /**
     * InvalidExpectationDefinitionException constructor.
     *
     * @param $definition
     */
    public function __construct( $definition ) {
        parent::__construct( sprintf(
            'Invalid expectation definition: %1$s.',
            $this->format( $definition )
        ) );
    }
}