for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Port\Steps;
use PhpSpec\ObjectBehavior;
class PriorityQueueSpec extends ObjectBehavior
{
function it_is_initializable()
$this->shouldHaveType('Port\Steps\PriorityQueue');
}
function it_enforces_predictable_queue_order_for_elements_with_the_same_priority()
$this->insert('value_foo', 1);
$this->insert('value_bar', 1);
$this->insert('value_baz', 1);
$this->extract()->shouldBe('value_foo');
$this->extract()->shouldBe('value_bar');
$this->extract()->shouldBe('value_baz');