Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
zendframework/zendframework#6422 - adding test case for the studly ca…
Browse files Browse the repository at this point in the history
…se naming strategy
  • Loading branch information
Ocramius committed Jul 27, 2014
1 parent a534ecf commit 13641b8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/Hydrator/NamingStrategy/UnderscoreNamingStrategyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,15 @@ public function testNameExtractsToUnderscore()
$strategy = new UnderscoreNamingStrategy();
$this->assertEquals('foo_bar_baz', $strategy->extract('fooBarBaz'));
}

/**
* @group 6422
* @group 6420
*/
public function testNameHydratesToStudlyCaps()
{
$strategy = new UnderscoreNamingStrategy();

$this->assertEquals('fooBarBaz', $strategy->hydrate('Foo_Bar_Baz'));
}
}

0 comments on commit 13641b8

Please # to comment.