Skip to content

Php7 support #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
language: php

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0

env:
matrix:
- PREFER_LOWEST="--prefer-lowest"
- PREFER_LOWEST=""

before_script:
- curl -s http://getcomposer.org/installer | php
- php composer.phar --dev install
- composer update --prefer-source PREFER_LOWEST

script:
- bin/phpspec run -v -f pretty
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ public function __toString()
}
}

class StringSpec extends ObjectBehavior
class StringConverterSpec extends ObjectBehavior
{
/**
* @dataProvider positiveConversionExamples
*/
function it_convert_values_to_string($value, $expectedValue)
function it_converts_values_to_string($value, $expectedValue)
{
$this->beConstructedWith($value);
$this->__toString()->shouldReturn($expectedValue);
Expand All @@ -36,13 +36,13 @@ function positiveConversionExamples()
);
}

function it_convert_double_to_string_for_specific_locale()
function it_converts_double_to_string_for_specific_locale()
{
$this->beConstructedWith(1.1, 'pl');
$this->__toString()->shouldReturn('1,1');
}

function it_convert_resource_to_string()
function it_converts_resource_to_string()
{
$resource = fopen(sys_get_temp_dir() . "/foo", "w");
$this->beConstructedWith($resource);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Coduo\ToString;

class String
class StringConverter
{
/**
* @var mixed
Expand Down