/** * @testdox Test an observer object is correctly stored in the JEditor class * * @since 3.4.4 */ public function testAttachWithClass() { $testObserver = new EditorObserver(); $this->object->attach($testObserver); $this->assertAttributeSame(array($testObserver), '_observers', $this->object, 'Observer was not attached to the editor'); }