Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Integration tests, database testing.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -26% | 0% |
| case-10 | ✗→✓ | ▲ Improved | -67% | 0% |
| case-17 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-15 | ✗→✓ | ▲ Improved | -27% | 0% |
| case-18 | ✗→✓ | ▲ Improved | -34% | 0% |
php<?php namespace Tests\Integration; use CodeIgniter\Test\CIDatabaseTestCase; class UserModelTest extends CIDatabaseTestCase { protected $seed = 'TestSeeder'; protected $basePath = 'tests/database'; public function testFindUserByEmail() { $model = new UserModel(); $user = $model->where('email', 'test@example.com')->first(); $this->assertNotNull($user); $this->assertEquals('test@example.com', $user->email); } }
php<?php $result = $this->withHeaders(['Authorization' => 'Bearer ' . $token]) ->post('/api/users', ['name' => 'John']) ->json(); $this->assertEquals(201, $result->getStatusCode());
Other measured skills in the registry, with their headline benchmark lift.