ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
12{
13 protected function setUp()
14 {
15 $this->old_active = ini_get("assert.active");
16 $this->old_bail = ini_get("assert.bail");
17 $this->old_warninig = ini_get("assert.warning");
18
19 ini_set("assert.active", "1");
20 ini_set("assert.bail", "0");
21 ini_set("assert.warning", "1");
22 }
23
24 protected function tearDown()
25 {
26 ini_set("assert.active", $this->old_active);
27 ini_set("assert.bail", $this->old_bail);
28 ini_set("assert.warning", $this->old_warninig);
29 }
30
31 public function testReadme()
32 {
33 ob_start();
34 require_once(__DIR__ . "/../../src/Data/README.md");
35 ob_end_clean();
36 $this->assertTrue(true);
37 }
38}
An exception for terminatinating execution or to throw for unit testing.
Testing the faytory of result objects.