Skip to content

Commit e1f8146

Browse files
committed
setDetector now checks thats object attribute is set correctly
1 parent 315d0f5 commit e1f8146

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/Ferret/FerretTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ public function testSetDetector()
4444
{
4545
$stub = $this->getMock("Ferret\Detector\DetectorInterface");
4646

47-
$this->assertTrue($this->object->setDetector($stub));
47+
$this->object->setDetector($stub);
48+
49+
$this->assertEquals($stub, $this->readAttribute($this->object, 'detector'));
4850
}
4951

5052
/**

0 commit comments

Comments
 (0)