ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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
8{
13 {
14 $object = $this->getMockBuilder('ilObject')
15 ->disableOriginalConstructor()
16 ->getMock();
17
18 $object->method('getType')
19 ->willReturn('something');
20
22
23 $factory->create($object);
24
25 $this->fail('Should never happen');
26 }
27}
$factory
Definition: metadata.php:43
An exception for terminatinating execution or to throw for unit testing.
testTypeIsNotSupportedAndWillThrowAnException()
@expectedException ilException