-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
12 changed files
with
320 additions
and
6 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
21 changes: 21 additions & 0 deletions
21
tests/NullDev/PhpSpecSkeleton/example-outputs/class-spec.output
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,21 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Developer\Senior; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith(); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-1-classless-param-spec.output
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,26 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use Human\Person; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith($firstName = 'firstName'); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
$this->getFirstName()->shouldReturn('firstName'); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-1-param-spec.output
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\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use FirstName; | ||
use Human\Person; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let(FirstName $firstName) | ||
{ | ||
$this->beConstructedWith($firstName); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters(FirstName $firstName) | ||
{ | ||
$this->getFirstName()->shouldReturn($firstName); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-1-scalartypes-param-spec.output
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,26 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use Human\Person; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith($firstName = 'firstName'); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
$this->getFirstName()->shouldReturn('firstName'); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-2-param-spec.output
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,29 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use FirstName; | ||
use Human\Person; | ||
use LastName; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let(FirstName $firstName, LastName $lastName) | ||
{ | ||
$this->beConstructedWith($firstName, $lastName); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters(FirstName $firstName, LastName $lastName) | ||
{ | ||
$this->getFirstName()->shouldReturn($firstName); | ||
$this->getLastName()->shouldReturn($lastName); | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-3-param-spec.output
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,31 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use FirstName; | ||
use HR\Finances\Wage; | ||
use Human\Person; | ||
use LastName; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let(FirstName $firstName, LastName $lastName, Wage $amount) | ||
{ | ||
$this->beConstructedWith($firstName, $lastName, $amount); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters(FirstName $firstName, LastName $lastName, Wage $amount) | ||
{ | ||
$this->getFirstName()->shouldReturn($firstName); | ||
$this->getLastName()->shouldReturn($lastName); | ||
$this->getAmount()->shouldReturn($amount); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-multi-spec.output
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\Developer; | ||
|
||
use Coder; | ||
use Coder2; | ||
use Developer\Senior; | ||
use Human\Person; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith(); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
$this->shouldHaveType(Coder2::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-all-spec.output
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,25 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use Human\Person; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith(); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-interface-spec.output
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,23 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Coder; | ||
use Developer\Senior; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith(); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Coder::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-parent-spec.output
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,23 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Developer\Senior; | ||
use Human\Person; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith(); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
$this->shouldHaveType(Person::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
tests/NullDev/PhpSpecSkeleton/example-outputs/class-with-trait-spec.output
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,21 @@ | ||
<?php | ||
|
||
namespace spec\Developer; | ||
|
||
use Developer\Senior; | ||
use PhpSpec\ObjectBehavior; | ||
use Prophecy\Argument; | ||
class SeniorSpec extends ObjectBehavior | ||
{ | ||
public function let() | ||
{ | ||
$this->beConstructedWith(); | ||
} | ||
public function it_is_initializable() | ||
{ | ||
$this->shouldHaveType(Senior::class); | ||
} | ||
public function it_should_expose_constructor_arguments_via_getters() | ||
{ | ||
} | ||
} |