public function testVisibility() { $row = new Row(['id' => 1, 'name' => 'someValue']); $this->assertTrue($row->isVisible()); $this->assertInstanceOf('PDOMocker\\Row', $row->setVisible(false)); $this->assertFalse($row->isVisible()); $this->assertInstanceOf('PDOMocker\\Row', $row->setVisible(true)); $this->assertTrue($row->isVisible()); $this->assertInstanceOf('PDOMocker\\Row', $row->setVisible(false)); $this->assertFalse($row->isVisible()); $this->assertInstanceOf('PDOMocker\\Row', $row->setVisible()); $this->assertTrue($row->isVisible()); }