@@ 117-130 (lines=14) @@ | ||
114 | $this->assertTrue($statement->equals($fetchedStatement->withId(null))); |
|
115 | } |
|
116 | ||
117 | public function getStatementsWithId() |
|
118 | { |
|
119 | $fixtures = array(); |
|
120 | ||
121 | foreach (get_class_methods('Xabbuh\XApi\DataFixtures\StatementFixtures') as $method) { |
|
122 | $statement = call_user_func(array('Xabbuh\XApi\DataFixtures\StatementFixtures', $method)); |
|
123 | ||
124 | if ($statement instanceof Statement) { |
|
125 | $fixtures[$method] = array($statement->withId(StatementId::fromString(StatementFixtures::DEFAULT_STATEMENT_ID))); |
|
126 | } |
|
127 | } |
|
128 | ||
129 | return $fixtures; |
|
130 | } |
|
131 | ||
132 | public function getStatementsWithoutId() |
|
133 | { |
|
@@ 132-145 (lines=14) @@ | ||
129 | return $fixtures; |
|
130 | } |
|
131 | ||
132 | public function getStatementsWithoutId() |
|
133 | { |
|
134 | $fixtures = array(); |
|
135 | ||
136 | foreach (get_class_methods('Xabbuh\XApi\DataFixtures\StatementFixtures') as $method) { |
|
137 | $statement = call_user_func(array('Xabbuh\XApi\DataFixtures\StatementFixtures', $method)); |
|
138 | ||
139 | if ($statement instanceof Statement) { |
|
140 | $fixtures[$method] = array($statement->withId(null)); |
|
141 | } |
|
142 | } |
|
143 | ||
144 | return $fixtures; |
|
145 | } |
|
146 | ||
147 | /** |
|
148 | * @expectedException \Xabbuh\XApi\Common\Exception\NotFoundException |