Skip to content

Commit

Permalink
Fix failing php 5.4 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvermeyen committed Feb 3, 2015
1 parent 29be1f3 commit 295a645
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions spec/TestTwitterBaseSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class TestTwitterBaseSpec extends ObjectBehavior {

function let(Configuration $configuration, Configurator $configurator, TwitterCourier $courier, AuthHelper $authHelper, UrlHelper $urlHelper, TwitterFactory $twitterFactory)
{
$this->beConstructedWith(SELF::$CONFIG, $configurator, $courier, $authHelper, $urlHelper, $twitterFactory);
$this->beConstructedWith(self::$CONFIG, $configurator, $courier, $authHelper, $urlHelper, $twitterFactory);

$configurator->load(SELF::$CONFIG)->willReturn($configuration);
$configurator->load(self::$CONFIG)->willReturn($configuration);
$configuration->get(Argument::type('string'))->willReturn('config');;
}

Expand All @@ -30,7 +30,7 @@ function it_is_initializable()

function it_is_initializable_with_constructor_config_argument_only()
{
$this->beConstructedWith(SELF::$CONFIG);
$this->beConstructedWith(self::$CONFIG);
$this->shouldHaveType('CodeZero\Twitter\TwitterBase');
}

Expand Down
6 changes: 3 additions & 3 deletions spec/TwitterSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class TwitterSpec extends ObjectBehavior {

function let(Configuration $configuration, Response $response, Configurator $configurator, TwitterCourier $courier, AuthHelper $authHelper, UrlHelper $urlHelper, TwitterFactory $twitterFactory)
{
$this->beConstructedWith(SELF::$CONFIG, $configurator, $courier, $authHelper, $urlHelper, $twitterFactory);
$this->beConstructedWith(self::$CONFIG, $configurator, $courier, $authHelper, $urlHelper, $twitterFactory);

$configurator->load(SELF::$CONFIG)->willReturn($configuration);
$configurator->load(self::$CONFIG)->willReturn($configuration);
$configuration->get(Argument::type('string'))->willReturn('config');;

// Request Access Token
Expand All @@ -36,7 +36,7 @@ function it_is_initializable()

function it_is_initializable_with_constructor_config_argument_only()
{
$this->beConstructedWith(SELF::$CONFIG);
$this->beConstructedWith(self::$CONFIG);
$this->shouldHaveType('CodeZero\Twitter\Twitter');
}

Expand Down

0 comments on commit 295a645

Please sign in to comment.