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()); $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();

View File

@ -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()