InterceptableValidatorTest.php 765 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\ObjectManager\Test\Unit;
  7. require __DIR__ . '/_files/Proxy.php';
  8. class InterceptableValidatorTest extends \PHPUnit\Framework\TestCase
  9. {
  10. public function testValidate()
  11. {
  12. $interceptableValidator = new \Magento\Framework\ObjectManager\InterceptableValidator();
  13. $this->assertFalse(
  14. $interceptableValidator->validate(
  15. \Magento\Catalog\Controller\Adminhtml\Product\Initialization\Helper\Interceptor::class
  16. )
  17. );
  18. $this->assertFalse(
  19. $interceptableValidator->validate(
  20. \Magento\Test\Di\Proxy::class
  21. )
  22. );
  23. }
  24. }