Files
openstackid/app/tests/ExceptionTest.php
Sebastian Marcet cb39ef95e1 Fixed Unit Tests
fixed some broken unit tests.

Change-Id: I6219f3d8a9b4a5053810197ea8e46dc0e5fc07f4
2015-03-23 13:26:52 -03:00

20 lines
484 B
PHP

<?php
/**
* Created by PhpStorm.
* User: smarcet
* Date: 11/8/13
* Time: 1:21 PM
*/
use openid\exceptions\ReplayAttackException;
class ExceptionTest extends TestCase{
private function getExName(\Exception $ex){
return get_class($ex);
}
public function testExceptionTypes(){
$ex1 = new ReplayAttackException();
$class_name = $this->getExName($ex1);
$this->assertTrue($class_name == 'openid\exceptions\ReplayAttackException');
}
}