My first commit of codes

This commit is contained in:
sujitprasad
2015-05-01 13:13:01 +05:30
parent 4c8e5096f1
commit a6e5a69348
8487 changed files with 1317246 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
<?php
namespace spec\PhpSpec\Config;
use PhpSpec\ObjectBehavior;
use Prophecy\Argument;
class OptionsConfigSpec extends ObjectBehavior
{
function it_says_rerun_is_enabled_when_setting_is_true()
{
$this->beConstructedWith(false, false, true, false, false);
$this->isReRunEnabled()->shouldReturn(true);
}
function it_says_rerun_is_not_enabled_when_setting_is_false()
{
$this->beConstructedWith(false, false, false, false, false);
$this->isReRunEnabled()->shouldReturn(false);
}
function it_says_faking_is_enabled_when_setting_is_true()
{
$this->beConstructedWith(false, false, false, true, false);
$this->isFakingEnabled()->shouldReturn(true);
}
function it_says_faking_is_not_enabled_when_setting_is_false()
{
$this->beConstructedWith(false, false, false, false, false);
$this->isFakingEnabled()->shouldReturn(false);
}
function it_says_bootstrap_path_is_false_when_setting_is_false()
{
$this->beConstructedWith(false, false, false, false, false);
$this->getBootstrapPath()->shouldReturn(false);
}
function it_returns_bootstrap_path_when_one_is_specified()
{
$this->beConstructedWith(false, false, false, false, '/path/to/file');
$this->getBootstrapPath()->shouldReturn('/path/to/file');
}
}