spec\Documer\DocumerSpec::it_should_guess_document_and_return_array PHP Метод

it_should_guess_document_and_return_array() публичный Метод

    function it_should_guess_document_and_return_array()
    {
        $this->beConstructedWith(new Memory());
        $this->train('politics', 'This is text about Politics and more');
        $this->train('philosophy', 'Socrates is an ancient Greek philosopher');
        $this->train('athletic', 'Have no idea about athletics. Sorry.');
        $this->train('athletic', 'Not a clue.');
        $this->train('athletic', 'It is just not my thing.');
        $this->guess('What do we know about Socrates, the Greek philopher?')->shouldBeArray();
    }