예제 #1
0
	/**
	 *	Testing Add/Remove Data
	 *
	 * @param mixed Data to add to node and check for.
	 *
	 * @return void
	 * @dataProvider casesData
	 */
	function testAddAndRemoveData( $data )
	{
		$this->assertThat(
			$this->object->data(),
			$this->equalTo(null)
		);

		$this->object->setData($data);
		$this->assertThat(
			$this->object->data(),
			$this->equalTo($data)
		);
	}
예제 #2
0
 public function data()
 {
     return parent::data();
 }