4 * This file is part of the Behat.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Behat\Tester\Exception\Stringer;
13 use Behat\Behat\Tester\Exception\PendingException;
14 use Behat\Testwork\Exception\Stringer\ExceptionStringer;
18 * Strings pending exceptions.
20 * @author Konstantin Kudryashov <ever.zet@gmail.com>
22 class PendingExceptionStringer implements ExceptionStringer
27 public function supportsException(Exception $exception)
29 return $exception instanceof PendingException;
35 public function stringException(Exception $exception, $verbosity)
37 return trim($exception->getMessage());