Phue\Test\Command\GetRulesTest::testFoundNoRules PHP Метод

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

Test: Found no rules
public testFoundNoRules ( )
    public function testFoundNoRules()
    {
        // Stub transport's sendRequest method
        $this->mockTransport->expects($this->once())->method('sendRequest')->with($this->equalTo("/api/{$this->mockClient->getUsername()}/rules"))->will($this->returnValue(new \stdClass()));
        // Send command and get response
        $response = $this->getRules->send($this->mockClient);
        // Ensure we have an empty array
        $this->assertInternalType('array', $response);
        $this->assertEmpty($response);
    }