minor #24045 Remove php <7.1 code (chalasr)

This PR was merged into the 4.0-dev branch.

Discussion
----------

Remove php <7.1 code

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

fa3ab1f Remove php <7.1 code
This commit is contained in:
Nicolas Grekas 2017-08-31 10:50:32 +02:00
commit fb82c3896c
2 changed files with 0 additions and 19 deletions

View File

@ -1137,9 +1137,6 @@ class ApplicationTest extends TestCase
$this->assertContains('before.error.after.', $tester->getDisplay());
}
/**
* @requires PHP 7
*/
public function testRunWithError()
{
$application = new Application();
@ -1230,7 +1227,6 @@ class ApplicationTest extends TestCase
}
/**
* @requires PHP 7
* @expectedException \LogicException
* @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');
}
/**
* @requires PHP 7
*/
public function testRunDispatchesAllEventsWithError()
{
$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');
}
/**
* @requires PHP 7
*/
public function testRunWithErrorFailingStatusCode()
{
$application = new Application();

View File

@ -581,9 +581,6 @@ class PropertyAccessorTest extends TestCase
$this->propertyAccessor->setValue($object, 'countable', 'This is a string, \Countable expected.');
}
/**
* @requires PHP 7.0
*/
public function testAnonymousClassRead()
{
$value = 'bar';
@ -595,9 +592,6 @@ class PropertyAccessorTest extends TestCase
$this->assertEquals($value, $propertyAccessor->getValue($obj, 'foo'));
}
/**
* @requires PHP 7.0
*/
public function testAnonymousClassWrite()
{
$value = 'bar';
@ -642,7 +636,6 @@ class PropertyAccessorTest extends TestCase
}
/**
* @requires PHP 7.0
* @expectedException \TypeError
*/
public function testThrowTypeErrorInsideSetterCall()
@ -653,8 +646,6 @@ class PropertyAccessorTest extends TestCase
}
/**
* @requires PHP 7
*
* @expectedException \TypeError
*/
public function testDoNotDiscardReturnTypeError()