ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ilCertificateFactoryTest.php
Go to the documentation of this file.
1
<?
php
2
/* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
3
7
class
ilCertificateFactoryTest
extends
PHPUnit_Framework_TestCase
8
{
12
public
function
testTypeIsNotSupportedAndWillThrowAnException
()
13
{
14
$object = $this->getMockBuilder(
'ilObject'
)
15
->disableOriginalConstructor()
16
->getMock();
17
18
$object->method(
'getType'
)
19
->willReturn(
'something'
);
20
21
$factory
=
new
ilCertificateFactory
();
22
23
$factory
->create($object);
24
25
$this->fail(
'Should never happen'
);
26
}
27
}
ilCertificateFactoryTest\testTypeIsNotSupportedAndWillThrowAnException
testTypeIsNotSupportedAndWillThrowAnException()
ilException
Definition:
ilCertificateFactoryTest.php:12
$factory
$factory
Definition:
metadata.php:43
PHPUnit_Framework_TestCase
ilCertificateFactory
Definition:
class.ilCertificateFactory.php:7
ilCertificateFactoryTest
Definition:
ilCertificateFactoryTest.php:7
php
Services
Certificate
test
ilCertificateFactoryTest.php
Generated on Thu Jan 16 2025 19:02:19 for ILIAS by
1.8.13 (using
Doxyfile
)