public function testSeeInFormFieldsFails() { $this->module->amOnPage('/form/field_values'); $this->setExpectedException("PHPUnit_Framework_AssertionFailedError"); $params = ['radio1' => 'something I should not see', 'checkbox1' => true, 'checkbox2' => false, 'select1' => 'see test one', 'select2' => ['see test one', 'see test two', 'see test three']]; $this->module->seeInFormFields('form', $params); }