Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Martín committed Aug 20, 2013
1 parent 8a7c607 commit 9064d32
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions tests/Mandango/Mondator/Tests/Definition/ConstantTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Mandango\Mondator\Tests\Definition;

use Mandango\Mondator\Definition\Constant;

class ConstantTest extends \PHPUnit_Framework_TestCase
{
const IRRELEVANT_NAME = 'X';
const IRRELEVANT_VALUE = 'X';

public function testConstructor()
{
$constant = new Constant(self::IRRELEVANT_NAME, self::IRRELEVANT_VALUE);

$this->assertEquals($constant->getName(), self::IRRELEVANT_NAME);
$this->assertEquals($constant->getValue(), self::IRRELEVANT_VALUE);
}
}

0 comments on commit 9064d32

Please sign in to comment.