0

別のメソッドからデータを取得するクラス メソッドをテストしようとしています。
だから私はこれをしました:

function it_should_return_json_file_as_array()
{
    $this->exist()->willReturn(true);
    $this->read()->willReturn("{\"key\":\"value\"}");
    $this->getContent()->shouldHaveKeyWithValue('key', 'value');
}

しかし、起動するphpspec runと、次のようになりました。

[InvalidArgumentException]
String "" is not a valid classname. 
Please see reference document: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md  

何が起こっている?

4

1 に答える 1