Skip to content

Commit

Permalink
Add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BenConstable committed Apr 19, 2014
1 parent 515f8a4 commit d169797
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
15 changes: 15 additions & 0 deletions spec/PhpSpec/Laravel/EloquentModelBehaviorSpec.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php

namespace spec\PhpSpec\Laravel;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use PhpSpec\Formatter\Presenter\PresenterInterface;

class EloquentModelBehaviorSpec extends ObjectBehavior
{
function it_is_a_laravel_object_behavior()
{
$this->shouldBeAnInstanceOf('PhpSpec\Laravel\LaravelObjectBehavior');
}
}
27 changes: 27 additions & 0 deletions spec/PhpSpec/Laravel/LaravelObjectBehaviorSpec.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

namespace spec\PhpSpec\Laravel;

use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
use PhpSpec\Formatter\Presenter\PresenterInterface;
use PhpSpec\Laravel\Util\Laravel;

class LaravelObjectBehaviorSpec extends ObjectBehavior
{
function it_is_a_laravel_behaviour()
{
$this->shouldImplement('PhpSpec\Laravel\LaravelBehaviorInterface');
$this->shouldBeAnInstanceOf('PhpSpec\ObjectBehavior');
}

function it_accepts_a_laravel_utility(Laravel $laravel)
{
$this->setLaravel($laravel)->shouldHaveType('PhpSpec\Laravel\LaravelObjectBehavior');
}

function it_accepts_a_presenter(PresenterInterface $presenter)
{
$this->setPresenter($presenter)->shouldHaveType('PhpSpec\Laravel\LaravelObjectBehavior');
}
}

0 comments on commit d169797

Please sign in to comment.