for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types = 1);
/*
* This file is part of the KleijnWeb\SwaggerBundle package.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KleijnWeb\SwaggerBundle\Tests\Security;
use KleijnWeb\SwaggerBundle\Security\NoopProvider;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
/**
* @author John Kleijn <[email protected]>
class NoopProviderTest extends \PHPUnit_Framework_TestCase
{
* @test
public function authenticateThrowsException()
$provider = new NoopProvider();
$this->expectException(\BadMethodCallException::class);
$provider->authenticate($this->getMockForAbstractClass(TokenInterface::class));
}
public function supportsReturnsFalse()
$this->assertFalse($provider->supports($this->getMockForAbstractClass(TokenInterface::class)));