public function testCreateClassName() { $kit = new controller\Kit('path', ['namespacePrefix' => 'testPrefix']); $this->assertEquals('testPrefix\\path\\sub\\Controller', $kit->createClassName('/path/SUB', 'ControLLer')); $kit = new controller\Kit('path', ['namespacePrefix' => '']); $this->setExpectedException('UnexpectedValueException', 'Namespace prefix must be non empty by security reasons.'); $kit->createClassName('/path/SUB', 'ControLLer'); }