Skip to content

Instantly share code, notes, and snippets.

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