コード例 #1
0
ファイル: MethodTest.php プロジェクト: jstewmc/transient
 /**
  * __construct() should set the exception's names and message if names is string
  */
 public function test___construct_returnsSelf_ifNamesIsString()
 {
     $name = 'foo';
     $e = new Method($name);
     $this->assertEquals([$name], $e->getNames());
     $this->assertEquals("Method {$name} could not be found", $e->getMessage());
     return;
 }