I write a test function that depends on other test function. So it must running the first test and continue to second test.
I am trying to write like this
public function testConfirm(){
...
$student = $this->student('first');
}
/**
* @depends testConfirm
*/
public function testUnConfirm(){
....
$student->unconfirm(); //<= it doesn't recognise the $student.
}but unfortunately it's not working. Did I miss something?

Help















