-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
515f8a4
commit d169797
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | ||
} | ||
} |