for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace spec\Extraload\Loader;
use PhpSpec\ObjectBehavior;
use Symfony\Component\Console\Helper\Table;
class ConsoleLoaderSpec extends ObjectBehavior
{
function let(Table $table)
$this->beConstructedWith($table);
}
function it_is_initializable()
$this->shouldHaveType('Extraload\Loader\ConsoleLoader');
function it_implements_loader_interface()
$this->shouldImplement('Extraload\Loader\LoaderInterface');
function it_loads_data_in_console_using_table_helper(Table $table)
$table->addRow(['a1', 'b1', 'c1'])->shouldBeCalled();
$this->load(['a1', 'b1', 'c1']);
function it_renders_data_in_console_on_flush(Table $table)
$table->render()->shouldBeCalled();
$this->flush();