ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
BasicObserverTest.php
Go to the documentation of this file.
1<?php
10
15use Mockery\Adapter\Phpunit\MockeryTestCase;
16
17require_once("libs/composer/vendor/autoload.php");
18
19class BasicObserverTest extends MockeryTestCase
20{
21 public function testCheckIntegrity()
22 {
23 $this->expectException(Exception::class);
24
25 $observer = new BasicBucket();
26 $observer->setTask(new DownloadInteger());
27 BasicPersistence::instance()->saveBucketAndItsTasks($observer);
28 }
29}
An exception for terminatinating execution or to throw for unit testing.