ElementTextException.php 558 B

123456789101112131415161718192021222324
  1. <?php
  2. /*
  3. * This file is part of the Mink package.
  4. * (c) Konstantin Kudryashov <ever.zet@gmail.com>
  5. *
  6. * For the full copyright and license information, please view the LICENSE
  7. * file that was distributed with this source code.
  8. */
  9. namespace Behat\Mink\Exception;
  10. /**
  11. * Exception thrown when an expectation on the text of an element fails.
  12. *
  13. * @author Konstantin Kudryashov <ever.zet@gmail.com>
  14. */
  15. class ElementTextException extends ElementHtmlException
  16. {
  17. protected function getContext()
  18. {
  19. return $this->element->getText();
  20. }
  21. }