Browse Source

finished all tests

tags/2.0.0-beta
Antonio Ramirez 12 years ago
parent
commit
3575b99650
  1. 24
      tests/unit/framework/helpers/InflectorTest.php

24
tests/unit/framework/helpers/InflectorTest.php

@ -48,4 +48,28 @@ class InflectorTest extends TestCase
$this->assertEquals("Me My Self And i", Inflector::humanize('me_my_self_and_i'), true);
}
public function testVariablize()
{
$this->assertEquals("customerTable", Inflector::variablize('customer_table'));
}
public function testTableize()
{
$this->assertEquals("customer_tables", Inflector::tableize('customerTable'));
}
public function testSlug()
{
$this->assertEquals("this-is-a-title", Inflector::humanize('this is a title'));
}
public function testClassify()
{
$this->assertEquals("CustomerTable", Inflector::classify('customer_tables'));
}
public function testOrdinalize()
{
$this->assertEquals("21st", Inflector::humanize('21'));
}
}

Loading…
Cancel
Save