SetupTestCase.php 809 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\TestFramework\TestCase;
  7. use Magento\Framework\App\DesignInterface;
  8. use Magento\Framework\View\DesignExceptions;
  9. /**
  10. * Instance of Setup test case. Used in order to tweak dataProviders functionality.
  11. */
  12. class SetupTestCase extends \PHPUnit\Framework\TestCase implements MutableDataInterface
  13. {
  14. /**
  15. * @var array
  16. */
  17. private $data = [];
  18. /**
  19. * @inheritdoc
  20. */
  21. public function setData(array $data)
  22. {
  23. $this->data = $data;
  24. }
  25. /**
  26. * @inheritdoc
  27. */
  28. public function flushData()
  29. {
  30. $this->data = [];
  31. }
  32. /**
  33. * @inheritdoc
  34. */
  35. public function getData()
  36. {
  37. return $this->data;
  38. }
  39. }