Skip to content

Commit

Permalink
Add some missing files in Raspberry bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
adenova committed Apr 1, 2015
1 parent de655da commit ba61eb9
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Raspberry/HomeBundle/RaspberryHomeBundle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace Raspberry\HomeBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class RaspberryHomeBundle extends Bundle
{
}
7 changes: 7 additions & 0 deletions src/Raspberry/HomeBundle/Resources/config/services.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
parameters:
# raspberry_home.example.class: Raspberry\HomeBundle\Example

services:
# raspberry_home.example:
# class: %raspberry_home.example.class%
# arguments: [@service_id, "plain_value", %parameter%]
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

namespace Raspberry\HomeBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class DefaultControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();

$crawler = $client->request('GET', '/hello/Fabien');

$this->assertTrue($crawler->filter('html:contains("Hello Fabien")')->count() > 0);
}
}

0 comments on commit ba61eb9

Please sign in to comment.