for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Stojg\Crop;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class CropEntropySpec extends ObjectBehavior
{
function it_is_initializable()
$this->shouldHaveType('Stojg\Crop\CropEntropy');
}
function it_can_recieve_imagemagic_object_on_construct() {
$this->beConstructedWith(new \Imagick());
function it_cannot_recieve_non_imagemagic_on_construct() {
$this->beConstructedWith("asdds");