示例#1
0
 public function testHeightProperty()
 {
     $webshot = new Webshot();
     $this->setExpectedException('hotrush\\Webshotter\\Exception\\InvalidDataException', 'Invalid height value');
     $webshot->setHeight('foo');
     $webshot->setHeight(1000);
     $this->assertEquals(1000, PHPUnit_Framework_Assert::readAttribute($webshot, 'height'));
 }