Exemplo n.º 1
0
 function it_listens_to_the_config_file(ConfigInterface $configInterface)
 {
     $configInterface->getJQueryVersion()->willReturn("2.1.1");
     $configInterface->getBootstrapperVersion()->willReturn("3.2.1");
     $this->css()->shouldBe("<link rel='stylesheet' href='//netdna.bootstrapcdn.com/bootstrap/3.2.1/css/bootstrap.min.css'><link rel='stylesheet' href='//netdna.bootstrapcdn.com/bootstrap/3.2.1/css/bootstrap-theme.min.css'>");
     $this->js()->shouldBe("<script src='//code.jquery.com/jquery-2.1.1.min.js'></script><script src='//netdna.bootstrapcdn.com/bootstrap/3.2.1/js/bootstrap.min.js'></script>");
 }
Exemplo n.º 2
0
 function it_listens_to_the_config_file(ConfigInterface $configInterface)
 {
     $configInterface->getIconPrefix()->willReturn('bar');
     $this->create('foo')->render()->shouldReturn("<span class='bar bar-foo'></span>");
 }