Remove php <7.1 code
This commit is contained in:
parent
edb8c33f35
commit
fa3ab1fac8
@ -1137,9 +1137,6 @@ class ApplicationTest extends TestCase
|
|||||||
$this->assertContains('before.error.after.', $tester->getDisplay());
|
$this->assertContains('before.error.after.', $tester->getDisplay());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @requires PHP 7
|
|
||||||
*/
|
|
||||||
public function testRunWithError()
|
public function testRunWithError()
|
||||||
{
|
{
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
@ -1230,7 +1227,6 @@ class ApplicationTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires PHP 7
|
|
||||||
* @expectedException \LogicException
|
* @expectedException \LogicException
|
||||||
* @expectedExceptionMessage error
|
* @expectedExceptionMessage error
|
||||||
*/
|
*/
|
||||||
@ -1252,9 +1248,6 @@ class ApplicationTest extends TestCase
|
|||||||
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
|
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @requires PHP 7
|
|
||||||
*/
|
|
||||||
public function testRunDispatchesAllEventsWithError()
|
public function testRunDispatchesAllEventsWithError()
|
||||||
{
|
{
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
@ -1272,9 +1265,6 @@ class ApplicationTest extends TestCase
|
|||||||
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
|
$this->assertContains('before.dym.error.after.', $tester->getDisplay(), 'The PHP Error did not dispached events');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @requires PHP 7
|
|
||||||
*/
|
|
||||||
public function testRunWithErrorFailingStatusCode()
|
public function testRunWithErrorFailingStatusCode()
|
||||||
{
|
{
|
||||||
$application = new Application();
|
$application = new Application();
|
||||||
|
@ -581,9 +581,6 @@ class PropertyAccessorTest extends TestCase
|
|||||||
$this->propertyAccessor->setValue($object, 'countable', 'This is a string, \Countable expected.');
|
$this->propertyAccessor->setValue($object, 'countable', 'This is a string, \Countable expected.');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @requires PHP 7.0
|
|
||||||
*/
|
|
||||||
public function testAnonymousClassRead()
|
public function testAnonymousClassRead()
|
||||||
{
|
{
|
||||||
$value = 'bar';
|
$value = 'bar';
|
||||||
@ -595,9 +592,6 @@ class PropertyAccessorTest extends TestCase
|
|||||||
$this->assertEquals($value, $propertyAccessor->getValue($obj, 'foo'));
|
$this->assertEquals($value, $propertyAccessor->getValue($obj, 'foo'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @requires PHP 7.0
|
|
||||||
*/
|
|
||||||
public function testAnonymousClassWrite()
|
public function testAnonymousClassWrite()
|
||||||
{
|
{
|
||||||
$value = 'bar';
|
$value = 'bar';
|
||||||
@ -642,7 +636,6 @@ class PropertyAccessorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires PHP 7.0
|
|
||||||
* @expectedException \TypeError
|
* @expectedException \TypeError
|
||||||
*/
|
*/
|
||||||
public function testThrowTypeErrorInsideSetterCall()
|
public function testThrowTypeErrorInsideSetterCall()
|
||||||
@ -653,8 +646,6 @@ class PropertyAccessorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @requires PHP 7
|
|
||||||
*
|
|
||||||
* @expectedException \TypeError
|
* @expectedException \TypeError
|
||||||
*/
|
*/
|
||||||
public function testDoNotDiscardReturnTypeError()
|
public function testDoNotDiscardReturnTypeError()
|
||||||
|
Reference in New Issue
Block a user