Skip to content

Commit

Permalink
Add missing PHPdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Composieux committed Oct 29, 2014
1 parent 022d018 commit 3c47ffa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
@@ -1,9 +1,20 @@
<?php
/*
* This file is part of the Ekino Wordpress package.
*
* (c) 2013 Ekino
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Ekino\WordpressBundle\Tests\Event\Subscriber\I18n;

use Ekino\WordpressBundle\Event\Subscriber\I18n\I18nSubscriber;

/**
* Class RequestSubscriberTest
*/
class RequestSubscriberTest extends \PHPUnit_Framework_TestCase
{
protected $defaultLanguage;
Expand All @@ -14,6 +25,9 @@ class RequestSubscriberTest extends \PHPUnit_Framework_TestCase
*/
protected $subscriber;

/**
* Sets up a I18nSubscriber instance
*/
protected function setUp()
{
$this->defaultLanguage = 'fr';
Expand All @@ -22,11 +36,17 @@ protected function setUp()
$this->subscriber = new I18nSubscriber($this->defaultLanguage, $this->cookieName);
}

/**
* Tests static getSubscribedEvents() method
*/
public function testGetSubscribedEvents()
{
$this->assertInternalType('array', I18nSubscriber::getSubscribedEvents());
}

/**
* Tests onKernelRequest() method when no cookies are existing
*/
public function testOnKernelRequestNoExisingCookie()
{
$event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseEvent')->disableOriginalConstructor()->getMock();
Expand Down Expand Up @@ -63,6 +83,9 @@ public function testOnKernelRequestNoExisingCookie()
$this->subscriber->onKernelRequest($event);
}

/**
* Tests onKernelRequest() method
*/
public function testOnKernelRequest()
{
$event = $this->getMockBuilder('Symfony\Component\HttpKernel\Event\GetResponseEvent')->disableOriginalConstructor()->getMock();
Expand Down
8 changes: 8 additions & 0 deletions Tests/Event/Subscriber/WordpressResponseSubscriberTest.php
@@ -1,4 +1,12 @@
<?php
/*
* This file is part of the Ekino Wordpress package.
*
* (c) 2013 Ekino
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Ekino\WordpressBundle\Tests\Event\Subscriber;

Expand Down

0 comments on commit 3c47ffa

Please sign in to comment.