InvalidDriverExceptionSpec.php 763 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /*
  3. * This file is part of the Sylius package.
  4. *
  5. * (c) Paweł Jędrzejewski
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace spec\Sylius\Component\Resource\Exception\Driver;
  11. use PhpSpec\ObjectBehavior;
  12. /**
  13. * @author Arnaud Langlade <aRn0D.dev@gmail.com>
  14. */
  15. class InvalidDriverExceptionSpec extends ObjectBehavior
  16. {
  17. function let()
  18. {
  19. $this->beConstructedWith('driver', 'className');
  20. }
  21. function it_is_initializable()
  22. {
  23. $this->shouldHaveType('Sylius\Component\Resource\Exception\Driver\InvalidDriverException');
  24. }
  25. function it_should_extends_exception()
  26. {
  27. $this->shouldHaveType('\Exception');
  28. }
  29. }