Skip to content

Commit

Permalink
Drop php-5.6 because it will be end of life
Browse files Browse the repository at this point in the history
  • Loading branch information
peter279k committed Jul 1, 2018
1 parent 86da64c commit 3a0f69d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .styleci.yml
@@ -1,3 +1 @@
preset: laravel

linting: true
1 change: 0 additions & 1 deletion .travis.yml
@@ -1,7 +1,6 @@
language: php

php:
- 5.6
- 7.0
- 7.1
- 7.2
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Expand Up @@ -18,11 +18,11 @@
}
],
"require": {
"php" : ">=5.6.0",
"php" : ">=7.0",
"anahkiasen/underscore-php": "^2.0"
},
"require-dev": {
"phpunit/phpunit" : "^5.7",
"phpunit/phpunit" : "^6.5",
"scrutinizer/ocular": "~1.1"
},
"autoload": {
Expand Down
10 changes: 5 additions & 5 deletions tests/StringTest.php
Expand Up @@ -28,23 +28,23 @@ public function it_can_handle_a_non_empty_string()
/** @test */
public function it_doesnt_accept_arrays()
{
$this->setExpectedException(ErrorCreatingStringException::class);
$this->expectException(ErrorCreatingStringException::class);

string(['foo', 'bar', 'baz']);
}

/** @test */
public function it_doesnt_accept_empty_arrays()
{
$this->setExpectedException(ErrorCreatingStringException::class);
$this->expectException(ErrorCreatingStringException::class);

string([]);
}

/** @test */
public function it_doesnt_accept_objects_that_dont_implement_tostring()
{
$this->setExpectedException(ErrorCreatingStringException::class);
$this->expectException(ErrorCreatingStringException::class);

string(new \StdClass());
}
Expand Down Expand Up @@ -76,7 +76,7 @@ public function it_is_chainable()
/** @test */
public function it_raises_an_exception_when_an_undefined_method_is_called()
{
$this->setExpectedException('Spatie\String\Exceptions\UnknownFunctionException');
$this->expectException('Spatie\String\Exceptions\UnknownFunctionException');

string('test')->unknownFunction('hi');
}
Expand Down Expand Up @@ -122,7 +122,7 @@ public function it_can_determine_if_an_offset_is_set()
public function it_raises_an_exception_when_trying_to_unset_via_an_offset()
{
$string = string('string');
$this->setExpectedException('Spatie\String\Exceptions\UnsetOffsetException');
$this->expectException('Spatie\String\Exceptions\UnsetOffsetException');
unset($string[0]);
}
}

0 comments on commit 3a0f69d

Please sign in to comment.