ILIAS  release_7 Revision v7.30-3-g800a261c036
DataReadmeTest.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 2017 Stefan Hecken <stefan.hecken@concepts-and-training.de> Extended GPL, see docs/LICENSE */
3
4require_once("libs/composer/vendor/autoload.php");
5
6use PHPUnit\Framework\TestCase;
7
13class DataReadmeTest extends TestCase
14{
15 protected function setUp() : void
16 {
17 $this->old_active = ini_get("assert.active");
18 $this->old_bail = ini_get("assert.bail");
19 $this->old_warninig = ini_get("assert.warning");
20
21 ini_set("assert.active", "1");
22 ini_set("assert.bail", "0");
23 ini_set("assert.warning", "1");
24 }
25
26 protected function tearDown() : void
27 {
28 ini_set("assert.active", $this->old_active);
29 ini_set("assert.bail", $this->old_bail);
30 ini_set("assert.warning", $this->old_warninig);
31 }
32
33 public function testReadme()
34 {
35 ob_start();
36 require_once(__DIR__ . "/../../src/Data/README.md");
37 ob_end_clean();
38 $this->assertTrue(true);
39 }
40}
An exception for terminatinating execution or to throw for unit testing.
Testing the faytory of result objects.