This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 37
37
*/
38
38
class Zend_Log_Writer_AbstractTest extends PHPUnit_Framework_TestCase
39
39
{
40
+ /**
41
+ * @var Zend_Log_Writer_Abstract
42
+ */
40
43
protected $ _writer ;
41
44
42
45
public static function main ()
@@ -55,6 +58,10 @@ protected function setUp()
55
58
*/
56
59
public function testSetFormatter ()
57
60
{
61
+ if (version_compare (phpversion (), '7 ' , '>= ' )) {
62
+ $ this ->markTestSkipped ('Invalid typehinting is PHP Fatal error in PHP7+ ' );
63
+ }
64
+
58
65
require_once 'Zend/Log/Formatter/Simple.php ' ;
59
66
$ this ->_writer ->setFormatter (new Zend_Log_Formatter_Simple ());
60
67
$ this ->setExpectedException ('PHPUnit_Framework_Error ' );
Original file line number Diff line number Diff line change @@ -138,6 +138,10 @@ public function testFactory()
138
138
*/
139
139
public function testThrowStrictSetFormatter ()
140
140
{
141
+ if (version_compare (phpversion (), '7 ' , '>= ' )) {
142
+ $ this ->markTestSkipped ('Invalid typehinting is PHP Fatal error in PHP7+ ' );
143
+ }
144
+
141
145
try {
142
146
$ this ->writer ->setFormatter (new StdClass ());
143
147
} catch (Exception $ e ) {
You can’t perform that action at this time.
0 commit comments