15        $factory = new \ilTermsOfServiceEntityFactory();
 
   17        $this->assertInstanceOf(
'ilTermsOfServiceEntityFactory', 
$factory);
 
   27        $factory = new \ilTermsOfServiceEntityFactory();
 
   36        $factory = new \ilTermsOfServiceEntityFactory();
 
   38        $this->assertInstanceOf(
 
   39            'ilTermsOfServiceAcceptanceEntity',
 
   40            $factory->getByName(
'ilTermsOfServiceAcceptanceEntity')
 
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceBaseTest.
assertException(string $exceptionClass)
Class ilTermsOfServiceEntityFactoryTest.
testAcceptanceEntityIsReturnedWhenRequestedByName()
testExceptionIsRaisedWhenUnknownEntityIsRequested()
@expectedException \InvalidArgumentException
testInstanceCanBeCreated()