예제 #1
0
파일: ContainerTest.php 프로젝트: hybr/jpm
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testGetNotExists()
 {
     Container::get('no');
 }
예제 #2
0
파일: Mandango.php 프로젝트: hybr/jpm
 public function mandangoTypeToPHP($type, $from, $to)
 {
     return strtr(TypeContainer::get($type)->toPHPInString(), array('%from%' => $from, '%to%' => $to));
 }