public function testWidthProperty() { $webshot = new Webshot(); $this->setExpectedException('hotrush\\Webshotter\\Exception\\InvalidDataException', 'Invalid width value'); $webshot->setWidth('foo'); $webshot->setWidth(1000); $this->assertEquals(1000, PHPUnit_Framework_Assert::readAttribute($webshot, 'width')); }