1
1
<?php
2
- /**
3
- * Copyright 2011 Bas de Nooijer. All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions are met:
7
- *
8
- * 1. Redistributions of source code must retain the above copyright notice,
9
- * this list of conditions and the following disclaimer.
10
- *
11
- * 2. Redistributions in binary form must reproduce the above copyright notice,
12
- * this listof conditions and the following disclaimer in the documentation
13
- * and/or other materials provided with the distribution.
14
- *
15
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER AND CONTRIBUTORS "AS IS"
16
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
- * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
19
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25
- * POSSIBILITY OF SUCH DAMAGE.
26
- *
27
- * The views and conclusions contained in the software and documentation are
28
- * those of the authors and should not be interpreted as representing official
29
- * policies, either expressed or implied, of the copyright holder.
30
- */
31
2
32
3
namespace Solarium \Tests \Component ;
33
4
5
+ use PHPUnit \Framework \TestCase ;
34
6
use Solarium \Component \ComponentAwareQueryInterface ;
35
7
use Solarium \Component \Debug ;
8
+ use Solarium \Component \RequestBuilder \Debug as DebugBuilder ;
9
+ use Solarium \Component \ResponseParser \Debug as DebugParser ;
36
10
37
- class DebugTest extends \PHPUnit_Framework_TestCase
11
+ class DebugTest extends TestCase
38
12
{
39
13
/**
40
14
* @var Debug
@@ -43,7 +17,7 @@ class DebugTest extends \PHPUnit_Framework_TestCase
43
17
44
18
public function setUp ()
45
19
{
46
- $ this ->debug = new Debug ;
20
+ $ this ->debug = new Debug () ;
47
21
}
48
22
49
23
public function testConfigMode ()
@@ -67,18 +41,12 @@ public function testGetType()
67
41
68
42
public function testGetResponseParser ()
69
43
{
70
- $ this ->assertInstanceOf (
71
- 'Solarium\Component\ResponseParser\Debug ' ,
72
- $ this ->debug ->getResponseParser ()
73
- );
44
+ $ this ->assertInstanceOf (DebugParser::class, $ this ->debug ->getResponseParser ());
74
45
}
75
46
76
47
public function testGetRequestBuilder ()
77
48
{
78
- $ this ->assertInstanceOf (
79
- 'Solarium\Component\RequestBuilder\Debug ' ,
80
- $ this ->debug ->getRequestBuilder ()
81
- );
49
+ $ this ->assertInstanceOf (DebugBuilder::class, $ this ->debug ->getRequestBuilder ());
82
50
}
83
51
84
52
public function testSetAndGetExplainOther ()
0 commit comments