@@ 27-33 (lines=7) @@ | ||
24 | $this->assertSame('UserBaseBean', $strategy->getBaseBeanClassName("users")); |
|
25 | } |
|
26 | ||
27 | public function testGetDaoName() |
|
28 | { |
|
29 | $strategy = new DefaultNamingStrategy(); |
|
30 | $strategy->setDaoPrefix(''); |
|
31 | $strategy->setDaoSuffix('Dao'); |
|
32 | $this->assertSame('UserDao', $strategy->getDaoClassName("users")); |
|
33 | } |
|
34 | ||
35 | public function testGetBaseDaoName() |
|
36 | { |
|
@@ 83-89 (lines=7) @@ | ||
80 | $this->assertSame('ChevalDao', $strategy->getDaoClassName('chevaux')); |
|
81 | } |
|
82 | ||
83 | public function testUppercaseNames() |
|
84 | { |
|
85 | $strategy = new DefaultNamingStrategy(); |
|
86 | $strategy->setDaoPrefix(''); |
|
87 | $strategy->setDaoSuffix('Dao'); |
|
88 | $this->assertSame('UserDao', $strategy->getDaoClassName("USERS")); |
|
89 | } |
|
90 | } |
|
91 |