/** * @test * @dataProvider getIsTrustedComputerReturnValues */ public function isTrustedComputer_supportsTrustedComputerInterface_returnResult($userReturnValue) { $user = $this->createMock('Scheb\\TwoFactorBundle\\Model\\TrustedComputerInterface'); $user->expects($this->any())->method('isTrustedComputer')->with('trustedToken')->willReturn($userReturnValue); $returnValue = $this->trustedComputerManager->isTrustedComputer($user, 'trustedToken'); $this->assertEquals($userReturnValue, $returnValue); }