public function testIsValid() { $isValid = true; $result = new \Tuersteher\Result\Schema($isValid, 'Valid.'); $this->assertEquals($result->isValid(), $isValid); $isValid2 = false; $result->setValid($isValid2); $this->assertEquals($isValid2, $result->isValid()); $result2 = new \Tuersteher\Result\Schema(); $this->setExpectedException('\\Tuersteher\\Exception\\Result'); $result2->isValid(); }
public function testGetResultException() { $result = new \Tuersteher\Result\Schema(); $this->setExpectedException('\\Tuersteher\\Exception\\InvalidArgument'); $result->getResult('result1'); }