public function remove_returns_null_when_element_does_not_exist() { $fixture = new NodeList(); $fixture->add(new Text('Test')); $this->assertNull($fixture->remove(1)); }