forked from joomla/joomla-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
JImportTest.php
48 lines (46 loc) · 831 Bytes
/
JImportTest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
/**
* @package Joomla.UnitTest
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
/**
* Test class for import.php.
*
* @package Joomla.UnitTest
* @since 12.2
*/
class JImportTest extends PHPUnit_Framework_TestCase
{
/**
* Tests the error handler when throwing an ErrorException.
*
* @return void
*
* @expectedException ErrorException
*
* @since 12.2
*/
public function testErrorException()
{
$a = $b;
}
/**
* Tests the error handler when being silent.
*
* @return void
*
* @since 12.2
*/
public function testErrorControlOperator()
{
ob_start();
$a = @$b;
$out = ob_get_clean();
$this->assertThat(
$out,
$this->equalTo('')
);
}
}