[TASK] Merge submodule workspaces into core
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Log / Processor / AbstractMemoryTest.php
1 <?php
2 namespace TYPO3\CMS\Core\Tests\Unit\Log\Processor;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2012-2013 Steffen Müller (typo3@t3node.com)
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 *
19 * This script is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 * This copyright notice MUST APPEAR in all copies of the script!
25 ***************************************************************/
26
27 /**
28 * Testcase for \TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor
29 *
30 * @author Steffen Müller <typo3@t3node.com>
31 */
32 class AbstractMemoryTest extends \TYPO3\CMS\Core\Tests\UnitTestCase {
33
34 /**
35 * @test
36 * @todo Define visibility
37 */
38 public function getRealMemoryUsageGetsRealMemoryUsage() {
39 /** @var $processor \TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor */
40 $processor = $this->getMockForAbstractClass('TYPO3\\CMS\\Core\\Log\\Processor\\AbstractMemoryProcessor');
41 $this->assertAttributeEquals($processor->getRealMemoryUsage(), 'realMemoryUsage', $processor);
42 }
43
44 /**
45 * @test
46 * @todo Define visibility
47 */
48 public function setRealMemoryUsageSetsRealMemoryUsage() {
49 /** @var $processor \TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor */
50 $processor = $this->getMockForAbstractClass('TYPO3\\CMS\\Core\\Log\\Processor\\AbstractMemoryProcessor');
51 $processor->setRealMemoryUsage(FALSE);
52 $this->assertAttributeEquals(FALSE, 'realMemoryUsage', $processor);
53 }
54
55 /**
56 * @test
57 * @todo Define visibility
58 */
59 public function getFormatSizeGetsFormatSize() {
60 /** @var $processor \TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor */
61 $processor = $this->getMockForAbstractClass('TYPO3\\CMS\\Core\\Log\\Processor\\AbstractMemoryProcessor');
62 $this->assertAttributeEquals($processor->getFormatSize(), 'formatSize', $processor);
63 }
64
65 /**
66 * @test
67 * @todo Define visibility
68 */
69 public function setFormatSizeSetsFormatSize() {
70 /** @var $processor \TYPO3\CMS\Core\Log\Processor\AbstractMemoryProcessor */
71 $processor = $this->getMockForAbstractClass('TYPO3\\CMS\\Core\\Log\\Processor\\AbstractMemoryProcessor');
72 $processor->setFormatSize(FALSE);
73 $this->assertAttributeEquals(FALSE, 'formatSize', $processor);
74 }
75
76 }
77
78 ?>