Created
January 8, 2015 10:21
-
-
Save trq/88dfe2ad995f7267e573 to your computer and use it in GitHub Desktop.
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
<?php | |
namespace Trq; | |
class Foo | |
{ | |
protected function __construct() | |
{ | |
} | |
public static function create() | |
{ | |
return new static(); | |
} | |
} |
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
<?php | |
namespace spec\Trq; | |
use PhpSpec\ObjectBehavior; | |
use Prophecy\Argument; | |
class FooSpec extends ObjectBehavior | |
{ | |
function it_is_initializable() | |
{ | |
$this->shouldHaveType('Trq\Foo'); | |
} | |
} |
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
Trq\Foo | |
10 ✔ is initializable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment